Jump to content
The Dark Mod Forums

Newbie DarkRadiant Questions


demagogue

Recommended Posts

even if I remove previous script (that consist of 4 lines too),error is not disappearing

 

here is whole .script file

 

void addItem()

{

$player1.AddInvItem($SpoiledItemName);

}

 

 

____one line____

 

void CemetaryScript()

{

$player1.frob_item($CemetaryButton);

}

 

Edited by Shadowhide

Proceed with caution!

Link to comment
Share on other sites

Yeah, buttons are activated and pass the activator, so I think stumpy has it right.

 

Edit: To elaborate...

 

The way you had it, you were trying to frob the player and pass the button, which just ... doesn't work. (For one thing, you can't pass anything, that's why you get an error for having a parameter. One is one too many.)

 

Open question if you can frob the button and pass the player -- $CemetaryButton.frob_item($player1); -- but I'm not sure that's the way frobbing works. I think even frobbing the button you can't pass anything to it, so you'd still get a "too many parameters" error (even if you didn't pass anything, it's not clear the frobbing code would properly activate the button, since the script is doing the frobbing and not a player/AI as expected.)

 

Anyway, activate is the standard way to go. Remember, the base for core things like buttons, doors, speakers, etc, is still Doom3 which didn't have frobbing... It was activating everything, and frobbing was something TDM added later with its own rules pretty much intended for literal frobbing in the world.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

Try changing

 

$player1.frob_item($CemetaryButton);

 

to

 

frob_item($CemetaryButton);

 

Thanks Fidcal,it works :)

 

@demagogue,stumpy : thanks for explanation how d3 script system works :)

 

and other question :

how to change key picking sound ?

and how make entity unfrobable via script ?

Edited by Shadowhide

Proceed with caution!

Link to comment
Share on other sites

Fieldmedic: if you have a mission installed, D3 puts the lin files in its folder, but DarkRadiant doesn't find it. Copy it to your map folder and it will work.

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Link to comment
Share on other sites

I know, but the file isn't even created...I have searched the whole Doom3 folder...

 

 

 

 

 

I can play the map, even after a failed DMAP, but it says the AAS is out of date, of course...

 

 

 

 

 

Darkmod finally pulled the stick from its rectum...now it could create the file :blink: I have tried copying everything in the map to a new map and saved. Tried to install new missions. Tried DMAP other missions...now it suddenly CAN make a lin-file...

 

Thanks for the help anyway :)

 

It's in these cases it's good to take out the aggressions on other games, like the UT2004 mod Ballistic Weapons...

 

That mod could be a good challenger to TDM, but as it's totally different engine and type of game and concept, I'd have to put them both on the throne. :wub:

Edited by Fieldmedic
Link to comment
Share on other sites

To set frobable 0 from script....

 

$<entityname>.setFrobable(0);

 

I don't think there is a remove only script; you use replace with a null entity so...

 

To remove the key from inventory after use make the door target a script caller to...

 

float var=$player1.replaceInvItem ($key, $null_entity);

 

[edit] You might also need to use $key.remove(); as I'm not sure where the key will go.

Link to comment
Share on other sites

To set frobable 0 from script....

 

{:content:}lt;entityname>.setFrobable(0);

 

I don't think there is a remove only script; you use replace with a null entity so...

 

To remove the key from inventory after use make the door target a script caller to...

 

float var=$player1.replaceInvItem ($key, $null_entity);

 

[edit] You might also need to use $key.remove(); as I'm not sure where the key will go.

 

its working :)

 

 

Its possible to freeze player somehow ?

Proceed with caution!

Link to comment
Share on other sites

That's OK, scale can also be applied to materials for other purposes so it's not always clear about it's role... but it's main mission is resizing.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Ok,another question ( but privious still actual)

 

How to teleport player ? atdm:teleport entity will work ?

Use base > info_player_teleport.

Give it the spawnarg and value: target info_player_start_1

Give it the spawnarg angle with a value if you want to force the player to turn to face a particular direction.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 1 reply
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 3 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
×
×
  • Create New...