OmniMax 0 Posted May 10, 2005 I noticed something today, when making a trigger which kills everyone who walks into it is the usual fare: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Activation: Anybody Repeatedly Present Condition: this On Activation: "_x setDamage 1" forEach thislist Works fine and dandy, however, reverse "present" to "Not Present" and it doesn't work. But in order to simplify things, I instead of making several different 'present' kill triggers (with different conditions of activation), I would rather make one "Not Present" kill trigger. Why doesn't this work? Share this post Link to post Share on other sites
macguba 0 Posted May 10, 2005 Well of course it doesn't work.   Get ready to shoot yourself ... Ready?  OK  The trigger only fires when there is nobody present ... so therefore there is nobody to kill. Obvious, huh? You're just confused because you thought (correctly) that thislist doesn't care whether you have present or not present.  But the trigger still has to fire. Share this post Link to post Share on other sites
Chris Death 0 Posted May 10, 2005 For your case you need two triggers: Inner trigger - this is the area, where ppl should stay inside Outer trigger - this is little bigger than inner trigger Then you will have to remove all guys from outer trigger, which are also inside inner trigger and kill all of them. kill_list = list outer_trigger - list inner_trigger; "_x setdammage 1" foreach kill_list For this you can use a third trigger, which for example become activated repeatedly every 5 seconds (+/- however you like). ~S~ CD Share this post Link to post Share on other sites
OmniMax 0 Posted May 11, 2005 DV Chris Death: Thanks! I knew in the way you described it is the way that the OFP template used, but all the czech variable names confused the hell out of me. I have been searching a lot recently and I owe you a lot of thanks, mate. Your old posts really help along with a throng of others. *tips hat to you* Share this post Link to post Share on other sites