Game zone player: Difference between revisions
Jump to navigation
Jump to search
m (Reverted edit of last, changed back to last version by cur) |
m (Robot: fixing template case.) |
||
Line 16: | Line 16: | ||
==Inputs== | ==Inputs== | ||
*{{i targetname}} | *{{i targetname}} | ||
*{{ | *{{I Parentname}} | ||
*'''CountPlayersInZone''' | *'''CountPlayersInZone''' | ||
:Count the number of players in the zone, and fire the corresponding outputs. | :Count the number of players in the zone, and fire the corresponding outputs. |
Revision as of 19:31, 19 January 2009
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
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
- CountPlayersInZone
- Count the number of players in the zone, and fire the corresponding outputs.
Outputs
- Template:O targetname
- OnPlayerInZone
- 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.