game_counter
game_counter
is a point entity available in all GoldSrc games. This entity keeps an internal value of how many times it has been triggered, and when it reaches a specified value, it will trigger another entity.
Key Values
Targetname:
- Name
(targetname)
<targetname> - The targetname that other entities refer to this entity by.
Target:
- Target
(???)
<target_destination> - The targetname of an entity this entity will trigger when activated.
TargetX:
- Delay before trigger
(???)
<integer> - Delay in seconds before firing the targeted entity.
- KillTarget
(???)
<target_destination> - Entity to remove when activated.
- Initial Value
(frags)
<integer> - Sets the value that the game_counter should start at.
- Limit Value
(health)
<integer> - Sets the value that the game_counter must reach before triggering its Target.
Flags
- [
1
] : Remove On fire
If enabled, the game_counter will be removed once it has triggered its Target.
- [
2
] : Reset On fire
If enabled, once the game_counter has triggered its Target, it will reset its value back to the Initial Value. This will allow it to be used repeatedly, and will trigger its Target each time it reaches the Limit Value.