Template:O BasePropPhysics: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(OnHitByTank)
Line 16: Line 16:
; {{EP2 add|<code>OnHealthChanged</code>}}
; {{EP2 add|<code>OnHealthChanged</code>}}
; {{EP2 add|<code>OnTakeDamage</code>}}
; {{EP2 add|<code>OnTakeDamage</code>}}
: Prop's health has changed
; {{l4d2 add|<code>OnHitByTank</code>}}
: Prop has been punched by a Tank boss infected.
{{O Targetname}}
{{O Targetname}}
}}
}}

Revision as of 03:15, 7 January 2010

BasePropPhysics:
OnMotionEnabled
Motion has been enabled on the prop, either via the "Health Level to Override Motion" keyvalue or from the EnableMotion input.
OnAwakened
The prop has woken (force has been applied to it while it was asleep, or the wake input has been called).
OnPhysGunOnlyPickup (in all games since Half-Life 2: Episode One)
Player has picked the prop up with the Gravity Gun.
OnPlayerPickup (in all games since Half-Life 2: Episode One)
Player has picked the prop up with +USE or the Gravity Gun.
OnPhysGunDrop
Player has dropped the prop (from either hands or Gravity Gun). (!activator is the player.)
OnPlayerUse
Player has +USEd the prop. (!activator is the player.)
Note.pngNote:This output will fire only if the "Generate output on +USE" spawnflag is set.
Template:EP2 add
Not in a leaf?
Template:EP2 add
Template:EP2 add
Prop's health has changed
Template:L4d2 add
Prop has been punched by a Tank boss infected.