game_counter
Last edited 2 years ago2022-01-23 13:22:19 UTC
- Wiki
- View Page
-
You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date.
Click here to see the current revision of this page.
The game_counter 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.
Attributes
- Target (target) - When the game_counter's value reaches its limit, it will trigger the entity specified in Target.
- Delay before trigger (delay) - Seemingly unused.
- KillTarget (killtarget) - Seemingly unused.
- Name (targetname) - Name is a general attribute used to identify entities.
- Master (master) - Sets an entity to be used as a master (usually a multisource). The master entity must be active in order for the game_counter's value to increment.
- Initial Value (frags) - Sets the value that the game_counter should start at.
- Limit Value (health) - Sets the value that the game_counter must reach before triggering its Target.
Flags
- Remove On fire (1) - If enabled, the game_counter will be removed once it has triggered its Target.
- Reset On fire (2) - 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.
Notes
- The game_counter_set entity will allow you to set the game_counter's value to a specific value at will.
- The game_zone_player entity can be used to set a game_counter to the number of players inside or outside a zone.
- A game_counter can be decremented by triggering it with a trigger_relay whose Trigger State is set to 'off'.
- Note that this entity will only trigger its target when the internal counter becomes equal to the limit value, not when it's higher (or lower). So if the initial value is 0 and the limit is 2, then using a game_counter_set that sets the counter to 4 will not trigger the target.
Comments
You must log in to post a comment.
You can login or register a new account.