game_counter

From Sven Co-op
Revision as of 22:14, 23 May 2023 by Loulimi (talk | contribs) (Add more details regarding the frags keyvalue)
(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.

It is also possible to access the number of times this entity was triggered.

1 Keyvalues

Initial value : frags

Starting value of entity. It's also its current value when accessing it through other entities like trigger_copyvalue or trigger_condition.

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 Notes

The game_counter’s current count can be accessed from the "frags" keyvalue.

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