Template:I Breakable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: Substituted IO templates)
(Fix description for SetMass input)
 
Line 24: Line 24:
}}<!--
}}<!--
-->{{#ifeq: {{{brush|0}}}|0||
-->{{#ifeq: {{{brush|0}}}|0||
{{I|SetMass|param=float|Damaging the entity applies physics forces to it.}}
{{I|SetMass|param=float|Sets the mass of the breakables' physics object, if it has one.}}
}}<!--
}}<!--
--></includeonly></onlyinclude>
--></includeonly></onlyinclude>


[[Category:Input Templates|Breakable]]
[[Category:Input Templates|Breakable]]

Latest revision as of 06:44, 3 October 2025

  • {{{prop|0}}} - If nonzero, shows prop related inputs. See also: {{I BreakableProp}}.
  • {{{brush|0}}} - If nonzero, shows brush related inputs. See also: {{I BreakableBrush}}.
  • {{{nohl2|0}}} - If nonzero, hides weapon_physcannon related inputs. Only effective with prop=1.

The result when setting both {{{prop}}} and {{{brush}}} to nonzero values is not supposed to be used.

The following is the result with no parameters.


Breakable:

Break
Breaks the breakable.
SetHealth <integer>
Sets a new value for the breakable's health. If the breakable's health reaches zero it will break.
AddHealth <integer>
Adds health to the breakable.
RemoveHealth <integer>
Removes health from the breakable.