Template:O TFObject: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{ScrollBox|title=TFObject| {{IO|OnDestroyed|Sent when object dies.}} {{IO|OnDamaged|Sent when hurt.}} {{IO|OnObjectHealthChanged|Sends current health as a parameter whenever a c…')
 
m (→‎top: Substituted IO templates)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ScrollBox|title=TFObject|
{{ScrollBox|title=TFObject|
{{IO|OnDestroyed|Sent when object dies.}}
{{O|OnDestroyed|Sent when object dies.}}
{{IO|OnDamaged|Sent when hurt.}}
{{O|OnDamaged|Sent when hurt. Works with [[!activator]].}}
{{IO|OnObjectHealthChanged|Sends current health as a parameter whenever a change occurs.|param=integer}}
{{O|OnRepaired|Sent when repaired. {{bug|Does not function.}}|nofgd=1}}
}}<noinclude>[[Category:FGD Templates|T]]</noinclude>
{{O|OnDisabled|Sent when disabled. {{bug|Does not function.}}|nofgd=1}}
{{O|OnReenabled|Sent when enabled. {{bug|Does not function.}}|nofgd=1}}
{{O|OnObjectHealthChanged|Sends current health as a parameter whenever a change occurs.|param=integer|nofgd=1}}
}}<noinclude>
[[Category:Output Templates|TFObject]]
</noinclude>

Latest revision as of 13:12, 21 April 2025

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.