Template:Tfitem: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Remove bullet points to match other entity pages)
m (updated template usage.)
Line 1: Line 1:
==Keywords==
{{lang|{{FULLPAGENAME}}}}[[Category:FGD Templates]]
{{KV Targetname}}
<onlyinclude>==Keywords==
{{KV Angles}}
{{KV BaseEntity|base=1}}
{{KV TFTeam}}
{{KV TeamNum|tf2=1}}
{{KV EnableDisable}}
{{KV EnableDisable}}
==Inputs==
==Inputs==
{{I Targetname}}
{{I BaseEntity|base=1}}
{{I EnableDisable}}
{{I EnableDisable}}
'''Toggle'''
{{IO|Toggle|Toggles the enabled/disabled status of the entity.}}
: Toggles the enabled/disabled status of the entity.


==Outputs==
==Outputs==
{{O Targetname}}
{{O BaseEntity}}
'''OnPlayerTouch'''
{{IO|OnPlayerTouch|Sent when the entity is picked up by a player.}}</onlyinclude>
: Sent when the entity is picked up by a player.

Revision as of 13:21, 30 September 2022

Keywords

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.
Toggle
Toggles the enabled/disabled status of the entity.

Outputs

OnPlayerTouch
Sent when the entity is picked up by a player.