Template:O Breakable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (!activator)
m ({{activator}})
Line 1: Line 1:
{{o targetname}}
{{o targetname}}
* '''OnBreak'''
* '''OnBreak'''
: Fired when this breakable breaks. Use !activator to target the breaker.
: Fired when this breakable breaks. {{activator|breaker}}
* '''OnHealthChanged <float>'''
* '''OnHealthChanged <float>'''
: Fired when the health of this breakable changes, passing the new value of health as a percentage of max health, from [0..1].
: Fired when the health of this breakable changes, passing the new value of health as a percentage of max health, from [0..1].
* '''OnPhysCannonDetach'''
* '''OnPhysCannonDetach'''
: Fired when the physcannon has ripped this breakable off of the wall. Only fired if ACT_PHYSCANNON_DETACH is defined in the model this breakable is using.
: Fired when the physcannon has ripped this breakable off of the wall. Only fired if ACT_PHYSCANNON_DETACH is defined in the model this breakable is using.

Revision as of 19:57, 16 April 2006

Template:O targetname

  • OnBreak
Fired when this breakable breaks. (!activator is the breaker)
  • OnHealthChanged <float>
Fired when the health of this breakable changes, passing the new value of health as a percentage of max health, from [0..1].
  • OnPhysCannonDetach
Fired when the physcannon has ripped this breakable off of the wall. Only fired if ACT_PHYSCANNON_DETACH is defined in the model this breakable is using.