game_counter

From Sven Co-op
Revision as of 23:29, 27 January 2019 by GeckonCZ (talk | contribs) (Import of converted entguide pages from Sven Manor.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
game_counter
Type

point

Status

supported

 


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.

1 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.

2 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.

3 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.