This article's documentation is for anything that uses the Source engine. Click here for more information.

game_zone_player

From Valve Developer Community
Revision as of 17:07, 17 May 2024 by PeeBot (talk | contribs) (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Jump to navigation Jump to search
English (en)Translate (Translate)
C++ class hierarchy
CGamePlayerZone defined in C++ maprules.cpp
CRuleBrushEntity
CRuleEntity
CBaseEntity

game_zone_player is a brush entity available in all Source Source games. It is used to count the number of players, dead or alive, within the volume of the brush.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

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 <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.