2 /*QUAKED spawnfunc_trigger_flipflop (.5 .5 .5) (-8 -8 -8) (8 8 8) START_ENABLED
3 "Flip-flop" trigger gate... lets only every second trigger event through
5 void flipflop_use(entity this, entity actor, entity trigger)
7 this.state = !this.state;
9 SUB_UseTargets(this, actor, trigger);
12 spawnfunc(trigger_flipflop)
14 if(this.spawnflags & 1)
16 this.use = flipflop_use;
17 this.reset = spawnfunc_trigger_flipflop; // perfect resetter