Template:O TFObject: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added documentation b/c some outputs don't function.)
m (proper nofgd method (wrapped bug templates also in the IO template for organizing too))
Line 1: Line 1:
{{ScrollBox|title=TFObject|
{{ScrollBox|title=TFObject|
{{IO|OnDestroyed|Sent when object dies.}}
{{IO|OnDestroyed|Sent when object dies.}}
{{IO|OnDamaged|Sent when hurt. Works with [[!activator]].}} {{Not in FGD}}
{{IO|OnDamaged|Sent when hurt. Works with [[!activator]].}}
{{IO|OnRepaired|Sent when repaired.}} {{Not in FGD}} {{bug|Does not function.}}
{{IO|OnRepaired|Sent when repaired. {{bug|Does not function.}}|nofgd=1}}
{{IO|OnDisabled|Sent when disabled.}} {{Not in FGD}} {{bug|Does not function.}}
{{IO|OnDisabled|Sent when disabled. {{bug|Does not function.}}|nofgd=1}}
{{IO|OnReenabled|Sent when enabled.}} {{Not in FGD}} {{bug|Does not function.}}
{{IO|OnReenabled|Sent when enabled. {{bug|Does not function.}}|nofgd=1}}
{{IO|OnObjectHealthChanged|Sends current health as a parameter whenever a change occurs.|param=integer}} {{Not in FGD}}
{{IO|OnObjectHealthChanged|Sends current health as a parameter whenever a change occurs.|param=integer|nofgd=1}}
}}<noinclude>
}}<noinclude>
[[Category:Output Templates|TFObject]]
[[Category:Output Templates|TFObject]]
</noinclude>
</noinclude>

Revision as of 10:21, 13 April 2021

TFObject:
OnDestroyed
Sent when object dies.
OnDamaged
Sent when hurt. Works with !activator.
OnRepaired  !FGD
Sent when repaired.
Icon-Bug.pngBug:Does not function.  [todo tested in ?]
OnDisabled  !FGD
Sent when disabled.
Icon-Bug.pngBug:Does not function.  [todo tested in ?]
OnReenabled  !FGD
Sent when enabled.
Icon-Bug.pngBug:Does not function.  [todo tested in ?]
OnObjectHealthChanged <integer> !FGD
Sends current health as a parameter whenever a change occurs.