Game zone player: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (updated template usage.)
mNo edit summary
Line 1: Line 1:
{{lang|{{PAGENAME}}}}
{{lang|title=game_zone_player}}
{{brush ent|game_zone_player}} It is used to count the number of players, dead or alive, within the volume of the brush.  
{{entity|game_zone_player|type=e2}} 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}}



Revision as of 08:36, 24 January 2023

English (en)Translate (Translate)

Template:Entity It is used to count the number of players, dead or alive, within the volume of the brush.

C++ In code, it is represented by theCGamePlayerZoneclass, defined in themaprules.cppfile.

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 <integerRedirectInput/integer>
Fired after a count, and contains the number of players found inside the zone.
PlayersOutCount <integerRedirectInput/integer>
Fired after a count, and contains the number of players found outside the zone.