Game zone player: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(→‎Entity Description: Removed dead links)
Line 7: Line 7:
{{sensor_brush}}
{{sensor_brush}}


{{in code|class=class_c_game_player_zone.html CGamePlayerZone|file=maprules_8cpp-source.html maprules.cpp}}
In code it is represented by class CGamePlayerZone, defined in maprules.cpp.


==Keyvalues==
==Keyvalues==

Revision as of 15:23, 14 December 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.

In code it is represented by class CGamePlayerZone, defined in maprules.cpp.

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.