Game zone player

From Valve Developer Community
Revision as of 10:28, 7 October 2022 by Kestrelguy (talk | contribs) (updated template usage.)
Jump to navigation Jump to search
English (en)Translate (Translate)

Template:Brush ent 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.