Game zone player: Difference between revisions
Jump to navigation
Jump to search

No edit summary |
Kestrelguy (talk | contribs) m (updated template usage.) |
||
Line 1: | Line 1: | ||
{{ | {{lang|{{PAGENAME}}}} | ||
{{brush ent|game_zone_player}} It is used to count the number of players, dead or alive, within the volume of the brush. | |||
It is used to count the number of players, dead or alive, within the volume of the brush. | |||
{{code class|CGamePlayerZone|maprules.cpp}} | {{code class|CGamePlayerZone|maprules.cpp}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV | {{KV BaseEntity|brush=1|noscroll=0}} | ||
==Inputs== | ==Inputs== | ||
{{IO|CountPlayersInZone|Count the number of players in the zone, and fire the corresponding outputs.}} | {{IO|CountPlayersInZone|Count the number of players in the zone, and fire the corresponding outputs.}} | ||
{{I | {{I BaseEntity|noscroll=0}} | ||
==Outputs== | ==Outputs== | ||
Line 21: | Line 15: | ||
{{IO|PlayersOutCount|Fired after a count, and contains the number of players found outside the zone.|param=integer}} | {{IO|PlayersOutCount|Fired after a count, and contains the number of players found outside the zone.|param=integer}} | ||
{{O Targetname}} | {{O Targetname}} | ||
{{sensor brush}} | {{sensor brush}} |
Revision as of 10:28, 7 October 2022


Template:Brush ent It is used to count the number of players, dead or alive, within the volume of the brush.
Keyvalues
Inputs
- CountPlayersInZone
- Count the number of players in the zone, and fire the corresponding outputs.
Outputs
- OnPlayerInZone
- Fired whenever a count finds a player inside the zone. (!activator is the player.)
- OnPlayerOutZone
- Fired whenever a count finds a player outside the zone. (!activator is the player.)
- PlayersInCount <integer >
- Fired after a count, and contains the number of players found inside the zone.
- PlayersOutCount <integer >
- Fired after a count, and contains the number of players found outside the zone.