Game zone player: Difference between revisions
Jump to navigation
Jump to search

(-added class hierarchy, cleanup) |
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
||
Line 1: | Line 1: | ||
{{lang | <!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{CD2|CGamePlayerZone|file1=maprules.cpp}} | ||
{{CD2|CGamePlayerZone|file1=maprules.cpp}} | {{this is a|e2|name=game_zone_player}} It is used to count the number of players, dead or alive, within the volume of the brush. | ||
{{ | |||
==Keyvalues== | ==Keyvalues== | ||
Line 10: | Line 9: | ||
==Outputs== | ==Outputs== | ||
{{IO|OnPlayerInZone|Fired whenever a count finds a player inside the zone. {{PlAct | {{IO|OnPlayerInZone|Fired whenever a count finds a player inside the zone. {{PlAct}} | ||
{{IO|OnPlayerOutZone|Fired whenever a count finds a player outside the zone. {{PlAct | {{IO|OnPlayerOutZone|Fired whenever a count finds a player outside the zone. {{PlAct}} | ||
{{IO|PlayersInCount|Fired after a count, and contains the number of players found inside the zone.|param=integer}} | {{IO|PlayersInCount|Fired after a count, and contains the number of players found inside the zone.|param=integer}} | ||
{{IO|PlayersOutCount|Fired after a count, and contains the number of players found outside the zone.|param=integer}} | {{IO|PlayersOutCount|Fired after a count, and contains the number of players found outside the zone.|param=integer}} | ||
{{sensor brush}} | {{sensor brush}} |
Revision as of 11:07, 4 January 2024


![]() |
---|
CGamePlayerZone defined in ![]() maprules.cpp
|
game_zone_player
is an e2 available in all 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
ortarget
).
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
{{IO|OnPlayerInZone|Fired whenever a count finds a player inside the zone. (!activator is the player.) {{IO|OnPlayerOutZone|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.