Template:I BreakableBrush: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Cleanup)
Line 1: Line 1:
; <code>EnableDamageForces</code>
{{ScrollBox|title=BreakableBrush|
; <code>DisableDamageForces</code>
{{IO|EnableDamageForces|Damaging the entity applies physics forces to it.}}
: Whether damaging the entity applies physics forces to it.
{{IO|DisableDamageForces|Damaging the entity does '''not''' apply physics forces to it.}}
{{I Breakable}}
{{I Breakable}}
{{I Parentname}}
{{I Parentname}}
}}<noinclude>
[[Category:Input Templates|BreakableBrush]]
</noinclude>

Revision as of 12:03, 9 June 2011

BreakableBrush:
EnableDamageForces
Damaging the entity applies physics forces to it.
DisableDamageForces
Damaging the entity does not apply physics forces to it.

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.
Parentname:
SetParent <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.