Trigger capture area

From Valve Developer Community

Table of contents
Trigger_Capture_Area is an entity used to make capture points
Enlarge
Trigger_Capture_Area is an entity used to make capture points

Entity Description

Capture area for a control point.

Availability

This brush-based entity is exclusive to Team Fortress 2.

Keyvalues

Defines the name that other entities refer to this entity by.
  • hammerid [Episode Two Update]
<integer readonly> This id is used for debugging purposes in Hammer.
  • StartDisabled
<boolean>
  • area_cap_point
<target_source> Name of the control point this area is linked to.
  • team_cancap_2
<boolean> Can RED capture this point?
  • team_cancap_3
<boolean> Can BLU capture this point?
  • team_numcap_2
<boolean> Number of RED players to capture this point.
  • team_numcap_3
<boolean> Number of BLU players to capture this point.
  • team_spawn_2
<integer> Adjust the minimum respawn time for the RED team by this amount (in seconds) when RED captures this point. If the RED team owns this point when BLU captures it, this adjustment is reversed.
  • team_spawn_3
<integer> Adjust the minimum respawn time for the BLU team by this amount (in seconds) when BLU captures this point. If the BLU team owns this point when RED captures it, this adjustment is reversed.
  • area_time_to_cap
<integer> Time to capture this area (in seconds).

Inputs

  • Kill
Removes this entity from the world.
Removes this entity and all its children from the world.
  • AddOutput <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
  • Enable
Enable this entity.
  • Disable
Disable this entity.
  • SetTeam
<integer> Changes the entity's team.
Disable this entity.
  • SetTeamCanCap
<string> Set whether a specific team is allowed to capture this point. Format is: <team number> <(0/1)>. i.e. '2 0' would prevent RED from capturing this point, whereas '3 1' would allow BLU to cap it.

Outputs

Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
!activator = activator
  • OnStartTeam1
Sent when RED start capture.
  • OnBreakTeam1
Sent when a RED capture is broken.
  • OnCapTeam1
Sent when RED captures.
  • OnStartTeam2
Sent when BLU start capture.
  • OnBreakTeam2
Sent when a BLU capture is broken.
  • OnCapTeam2
Sent when BLU captures.
  • OnStartCap
Sent when either team starts capture.
  • OnBreakCap
Sent when either team breaks capture.
  • OnEndCap
Sent when either team captures.