Template:O Breakable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(titles)
m (Added to Output Templates category)
Line 11: Line 11:
{{minititle|Breakable (common)}}
{{minititle|Breakable (common)}}
{{IO|OnBreak|Fired when this object breaks. {{ent|!activator}} is whatever breaks the object.}}
{{IO|OnBreak|Fired when this object breaks. {{ent|!activator}} is whatever breaks the object.}}
{{IO|OnHealthChanged|param=float|Fired whenever the health of the breakable has increased or decreased. {{outadd|the new health amount as a decimal percent (e.g. 45% {{=}} 0.45)}}}}
{{IO|OnHealthChanged|param=float|Fired whenever the health of the breakable has increased or decreased. {{outadd|the new health amount as a decimal percent (e.g. 45% {{=}} 0.45)}}}}<noinclude>
[[Category:Output Templates|Breakable]]
</noinclude>

Revision as of 19:30, 23 January 2020

This template isn't in line with anything specific in code. default shows only outputs for brushes.

  • prop=1 shows outputs for props as well. there's nothing brushes have that props don't have.
  • nohl2=1 eliminates the hl2-specific outputs.

Breakable (common):

OnBreak
Fired when this object breaks. !activator is whatever breaks the object.
OnHealthChanged <float>
Fired whenever the health of the breakable has increased or decreased. This output automatically puts the new health amount as a decimal percent (e.g. 45% = 0.45) into the parameter box for inputs, if the mapper does not override the parameter with something else.