game_zone_player

From Valve Developer Community
Revision as of 08:36, 24 January 2023 by REDESAILE (talk | contribs)
Jump to navigation Jump to search
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.