Game zone player: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added ", dead or alive,".)
mNo edit summary
Line 1: Line 1:
{{wrongtitle|title=game_zone_player}}
{{wrongtitle|title=game_zone_player}}
{{base_brush}}


==Entity Description==
==Entity Description==
A [[brush entity]] used to count the number of players, dead or alive, within the volume of the brush.  
A [[brush entity]] used to count the number of players, dead or alive, within the volume of the brush.  


==Availability==
 
{{in game|brush}} {{game-base}}
{{in code|class=class_c_game_player_zone.html CGamePlayerZone|file=maprules_8cpp-source.html maprules.cpp}}
{{in code|class=class_c_game_player_zone.html CGamePlayerZone|file=maprules_8cpp-source.html maprules.cpp}}


Line 29: Line 29:
*'''PlayersOutCount <integer>'''
*'''PlayersOutCount <integer>'''
:Fired after a count, and contains the number of players found outside the zone.
:Fired after a count, and contains the number of players found outside the zone.
[[Category:Entities]][[Category:Brush Entities]]

Revision as of 12:33, 12 April 2008

Template:Wrongtitle Template:Base brush

Entity Description

A brush entity used to count the number of players, dead or alive, within the volume of the brush.


Template:In code

Keyvalues

Inputs

Count the number of players in the zone, and fire the corresponding outputs.

Outputs

Fired whenever a count finds a player inside the zone. Template:Plact
  • OnPlayerOutZone
Fired whenever a count finds a player outside the zone. Template:Plact
  • 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.