game_zone_player
![English (en) English (en)](/w/images/3/37/Flag-en.png)
![]() |
---|
CGamePlayerZone defined in ![]() maprules.cpp
|
game_zone_player
is a brush entity available in all Source games. It is used to count the number of players, dead or alive, within the volume of the brush.
![Tip.png](/w/images/thumb/4/45/Tip.png/9px-Tip.png)
Keyvalues
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Inputs
CountPlayersInZone
- Count the number of players in the zone, and fire the corresponding outputs.
Outputs
OnPlayerInZone
<void>- Fired whenever a count finds a player inside the zone. (
!activator
is the player.)
OnPlayerOutZone
<void>- 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.