Template:O TFObject: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(More undocumented outputs)
(Added documentation b/c some outputs don't function.)
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.}} {{Not in FGD}}
{{IO|OnDamaged|Sent when hurt. Works with [[!activator]].}} {{Not in FGD}}
{{IO|OnRepaired|Sent when repaired.}} {{Not in FGD}}
{{IO|OnRepaired|Sent when repaired.}} {{Not in FGD}} {{bug|Does not function.}}
{{IO|OnDisabled|Sent when disabled.}} {{Not in FGD}}
{{IO|OnDisabled|Sent when disabled.}} {{Not in FGD}} {{bug|Does not function.}}
{{IO|OnReenabled|Sent when enabled.}} {{Not in FGD}}
{{IO|OnReenabled|Sent when enabled.}} {{Not in FGD}} {{bug|Does not function.}}
{{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}} {{Not in FGD}}
}}<noinclude>
}}<noinclude>
[[Category:Output Templates|TFObject]]
[[Category:Output Templates|TFObject]]
</noinclude>
</noinclude>

Revision as of 09:11, 13 April 2021

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