CGameCounterSet (CS)
Contents
Basic Information
- Classname: CGameCounterSet.
- Inheriting Instance: game_counter_set.
- Description: When triggered, this entity will set a game_counter to a specified value.
Class Hierarchy
- CBaseEntity
- CRuleEntity
- CRulePointEntity
- CGameCounterSet (game_counter_set)
- CRulePointEntity
- CRuleEntity
Entity Data
None.
Entity Attributes
- Name (targetname) - Property used to identify entities.
- Target (target) - When an entity is activated, it triggers the entity with the name specified by Target.
- Master (master) - The name of a multisource (or game_team_master) entity. A master must usually be active in order for the entity to work. Thus they act almost like an on/off switch, in their simplest form, and like an AND gate in the case of the multisource.
- New Value (frags) - The new value to be given to the target game_counter.
Entity Flags
// Spawn flags. #define SF_GAMECOUNTSET_FIREONCE 0x0001 // After firing, this entity will be removed.
HLSDK Reference
- maprules.cpp (line 737)