Game counter: Difference between revisions

From Sven Co-op
Jump to navigation Jump to search
Import of converted entguide pages from Sven Manor.
 
Loulimi (talk | contribs)
m Add more details regarding the frags keyvalue
 
Line 3: Line 3:
}}
}}


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


== Keyvalues ==
== Keyvalues ==


{{Entity_keyvalue|Initial value|frags|Starting value of entity. It's also current value when accessing it through other entities like trigger_copyvalue.}}
{{Entity_keyvalue|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.}}
{{Entity_keyvalue|Limit value|health|Required value to trigger target.}}
{{Entity_keyvalue|Limit value|health|Required value to trigger target.}}


Line 16: Line 17:
{{Entity_flag|2|Reset On fire|Reset entity Initial value after fired.}}
{{Entity_flag|2|Reset On fire|Reset entity Initial value after fired.}}
{{Entity_flag|4|Fire if over limit|Fire a target when initial value is higher than limit value.}}
{{Entity_flag|4|Fire if over limit|Fire a target when initial value is higher than limit value.}}
== Notes ==
The game_counter’s current count can be accessed from the "frags" keyvalue.


== Issues ==
== 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.
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.


{{entity_title}}
{{entity_title}}

Latest revision as of 22:14, 23 May 2023

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.

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.

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.

Notes

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

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.