Sven Co-opedia Wiki
Advertisement
Icon-info.png

This article is a stub.
Please help the Sven Co-opedia Wiki by expanding it.
Thank you!

game_counter is an entity in Sven Co-op that triggers its target after the entity is triggered a set number of times. An On/Toggle trigger increase the count by 1 and an Off trigger will deduct 1 from the count.

{
"classname" "game_counter"
"frags" "f"
"health" "h"
"spawnflags" "s"
"target" "target_entity"
"targetname" "targetme"
}

The initial value is set using the "frags" key from which to begin counting from, the limit value that is required for the count to reach to trigger the target is set using "health". Alternatively a separate game_counter_set entity can be used for this.

Flags

"spawnflags" "s", when s equals:-

  • 1 - Remove on Fire: the game_counter will delete itself after triggering its target.
  • 2 - Reset On fire: the count will reset to the initial value "frags" once it triggers its target.
  • 4 - Fire if over limit: The target will only trigger when the count exceeds the limit value.
Entities
Point Entities ambient_generic · ambient_music · ammo_ · custom_precache · env_xenmaker
game_counter · game_counter_set · game_player_counter · game_player_equip · game_end
item_inventory · multi_manager · multisource · monster_ · player_weaponstrip · squadmaker
trigger_auto · trigger_relay · trigger_changetarget · trigger_changevalue · trigger_changesky · trigger_random
weapon_ · weaponbox
xen_
Brush Entities func_conveyor · func_wall
trigger_changelevel · trigger_once · trigger_multiple
Obsolete Entities trigger_endsection · trigger_counter · trigger_autosave
Advertisement