patchx Posted May 20, 2002 Share Posted May 20, 2002 ive got a scriptrunner that does a script to remove a bunch of dudes and the scriptrunner is targetted by a trigger brush that the player crosses the trouble is the script must be running as soon as the player spawns and not waiting for the trigger brush to set it off because all the dudes are gone by the time th player gets to them any one know any special tricks in triggering target_scriptrunners? -patch Link to comment Share on other sites More sharing options...
RichDiesal Posted May 20, 2002 Share Posted May 20, 2002 Hmm.. few things. You sure it's a trigger_once and set to playeronly? Are you sure the trigger_once is targeting the scriptrunner and not the other way around? What kind of script are you using to remove them? Link to comment Share on other sites More sharing options...
patchx Posted May 20, 2002 Author Share Posted May 20, 2002 yup, trigger once, targetting the scriptrunner det to player only the script is just something i sorta guessed but its working except for its not waiting to be triggered its just remove ( "topguys" ); thats the whole thing and then the npc_targetname of the guys i want removed is "topguys" -patch Link to comment Share on other sites More sharing options...
Xcom Posted May 20, 2002 Share Posted May 20, 2002 Just target your info_player_start at this target_scriptrunner. This will execute the script the moment player spawns in the map. Link to comment Share on other sites More sharing options...
RichDiesal Posted May 20, 2002 Share Posted May 20, 2002 Er, well that's not what he wants it to do; he wants it to trigger later. Well... hmm... the script might not be working at all. It could be that the script isn't working and the engine thinks it's something akin to a spawn script and thus isn't even spawning them in the first place... I'm not sure. Try changing the remove statements to kill statements and recompile... then use noclip to find out if there are bodies where the NPCs should be. Link to comment Share on other sites More sharing options...
Xcom Posted May 20, 2002 Share Posted May 20, 2002 Originally posted by RichDiesal Er, well that's not what he wants it to do; he wants it to trigger later. After reading this: Originally posted by patchx the trouble is the script must be running as soon as the player spawns and not waiting for the trigger brush to set it off I figured it's exactly what he wants. Oh well Link to comment Share on other sites More sharing options...
patchx Posted May 21, 2002 Author Share Posted May 21, 2002 actually no i wanted it to trigger later when a certain npc is spawned i got it to work i had given the npcs it was affecting a targetname key instead of a NPC_targetname so it was waiting for the script to execute before spawning them and then as soon as they were spawned the script would remove them pretty daft hey? -patch Link to comment Share on other sites More sharing options...
Xcom Posted May 21, 2002 Share Posted May 21, 2002 I still haven't got a clue what you wanted to make but I am glad you sorted it out. LOL. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.