Template:O Breakable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Moved OnBreak and OnHealthChanged up. Merged minititles.)
No edit summary
Line 1: Line 1:
{{lang|Template:O Breakable}}
This template isn't in line with anything specific in code. Default shows only outputs for brushes.
This template isn't in line with anything specific in code. Default shows only outputs for brushes.
*<code>prop=1</code> shows outputs for props as well. There's nothing brushes have that props ''don't'' have.
*<code>prop=1</code> shows outputs for props as well. There's nothing brushes have that props ''don't'' have.

Revision as of 02:10, 2 January 2023

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 hides the hl2-specific outputs.

The following is the result with no parameters. See also: {{O BreakableProp}}, {{O BreakableBrush}}.


BreakableBrush:

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.