TheEnginesOfCreation / EntityPlus

EntityPlus is a mod that offers a true single player experience in the Quake III Arena videogame.
37 stars 5 forks source link

TriggerFirst #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I always found the key/value triggerFirst for triggers very handy in SP. It is 
simply a condition where this trigger doesn't fire until the trigger specified 
in the key/value pair has been tripped.

- phantazm11

Original issue reported on code.google.com by era...@gmail.com on 27 Mar 2011 at 11:17

GoogleCodeExporter commented 9 years ago

Original comment by era...@gmail.com on 28 Mar 2011 at 11:35

GoogleCodeExporter commented 9 years ago
This behavior can already be implemented using target_logic or target_disable 
(depending on exactly what behavior you're looking for). A triggerfirst key 
would be a shorthand way of getting such a setup (the target_disable variant).

Original comment by era...@gmail.com on 31 Mar 2011 at 11:03

GoogleCodeExporter commented 9 years ago
Yeah, and I'm using target_variable to do this.  Or maybe not quite what you're 
doing.  But I needed a way to trigger ANYTHING "once", but I also needed a way 
to reset it so that it can be triggered "once" again for if the player dies and 
starts at the beginning of map again.  For my func_plat.

Anyways, you basically have a target_relay point to both your entity(your thing 
to be triggered), and a target_variable(which uses spawnflags: condition check 
if not match key/value ("triggered" != 1)).  Then, that target_variable then 
targets a target_variable(set key/value triggered = 1) that would set the 
trigger variable value to 1.  

Original comment by ryanbris...@gmail.com on 11 Sep 2011 at 2:47