Func changeclass: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (No need to state the namespace when it is the default one)
m (updated template usage.)
Line 1: Line 1:
{{Tf2 brush|func_changeclass}}
{{lang|{{PAGENAME}}}}
 
{{Tf2 brush|func_changeclass}} It designates an instant class change room for a team.
==Entity Description==
{{note|{{ent|func_respawnroom}} includes this function.}}
Designates an instant class change room for a team.


==Keyvalues==
==Keyvalues==
* {{KV Targetname}}
{{KV BaseEntity|brush=1|base=1}}
* {{KV TFTeam}}
{{KV EnableDisable}}
* {{KV EnableDisable}}
{{KV TeamNum|tf2=1}}
 
==Flags==
This entity doesn't have any flags.


==Inputs==
==Inputs==
* {{I Targetname}}
{{I BaseEntity|base=1|noscroll=0}}
* {{i tfteam}}
{{I TFTeam}}
* {{I EnableDisable}}
{{I EnableDisable}}
* '''Toggle'''
{{I Toggle}}
: Toggle the enabled/disabled status of this entity.


==Outputs==
==Outputs==
* {{O Targetname}}
{{O BaseEntity}}
 
[[Category:Team Fortress 2 Entities]]

Revision as of 10:38, 7 October 2022

English (en)Translate (Translate)

Template:Tf2 brush It designates an instant class change room for a team.

Note.pngNote:func_respawnroom includes this function.

Keyvalues

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

SetTeam <integerRedirectInput/integer>
Changes the entity's team.

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.

Outputs