Item teamflag: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 44: Line 44:
* '''OnReturn'''
* '''OnReturn'''
: Sent when the flag is returned via timer.
: Sent when the flag is returned via timer.
* '''OnPickup'''
* '''OnPickUp'''
: Sent when the flag is picked up.
: Sent when the flag is picked up.
* '''OnDrop'''
* '''OnDrop'''

Revision as of 03:21, 27 October 2009

Template:Wrongtitle

A team flag, don't worry its supposed to look like that.

Entity description

Team Fortress 2 flag entity.

Availability

This point entity is exclusive to Team Fortress 2.

Keywords

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
  • GameType
<choices> Type of game this flag will be used for.
Literal Value Description
0 CTF
1 Attack/Defend
2 Territory Control
3 Invade
4 King of the Hill
  • TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

  • EnableDisable:
Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
  • Skin (not in fdg)
<integer> Sets the skin of the entity. (0 = red, 1 = blue, 2 = gray)
  • SetTeam
<integer> Sets the team of the entity. (0 = any, 2 = red, 3 = blue)

Outputs

  • OnReturn
Sent when the flag is returned via timer.
  • OnPickUp
Sent when the flag is picked up.
  • OnDrop
Sent when the flag is dropped.
  • OnCapture
Sent when the flag is captured.

See also