zom_waiter() { trig = getent("triggy","targetname"); //change triggy to your trig targetname lol self waittill( "death" ); dist = Distance( self.origin, trig.origin ); if(dist < 200) { playfx(level._effect["powerup_grabbed_wave"], self.origin ); //this is just for decoration xP level.zombs_killed++; } if(level.zombs_killed == 20) { //do stuff } }
edited: i missed some things
Wouldnt you also need to disable the trigger before the code since he wants it to appear after killing enough zombies, then once you kill enough zombies by it you enable it?
Wouldnt you also need to disable the trigger before the code since he wants it to appear after killing enough zombies, then once you kill enough zombies by it you enable it?
well yeah but i didnt covered that part he would have to enable the trigger in the "//do stuff" part Post Merge: April 22, 2014, 02:29:27 amanyways i've added the part to enable and disable it
Last Edit: April 22, 2014, 02:29:27 am by jjbradman