func_changeclass

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)
Class hierarchy
CChangeClassZone
CBaseTrigger
CBaseToggle
CBaseEntity
func_changeclass.cpp

func_changeclass is a brush entity available in Team Fortress 2 Team Fortress 2. It designates an instant class change room for a team.

Note.pngNote:func_respawnroom includes this function.

Keyvalues

Name (targetname) <string>
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

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
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

Inputs

TFTeam:

SetTeam <integer>
Changes the entity's Team keyvalue.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.