entityguide‎ > ‎

game_counter

This is a logic entity which will fire its target after being triggered a specified amount of times. Toggle-trigger and on-trigger will cause
it to count up by 1. Off-trigger will cause it to count down by 1. An equivalent of this entity can be created through the usage of trigger_condition and trigger_changevalue.
Keyvalues


"
Initial value", frags:
Starting value of entity. It's also current value when accessing it through other entities like trigger_copyvalue.

"Limit value", health :
Required value to trigger target.


Flags


1
: "Remove On fire": Remove entity after firing.

2: "Reset On fire": Reset entity Initial value after fired.

4: "Fire if over limit": Fire a target when initial value is higher than limit value.


Issues
        • When target is set to ambient_generic, the game_counter need to receive twice more inputs than normal, unless "Fire if over limit" spawnflag is selected.


        Comments