Template:O BasePropPhysics: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{ScrollBox|title=BasePropPhysics|noscroll=true|
{{ScrollBox|title=BasePropPhysics|noscroll=true|
; <code>OnMotionEnabled</code>
; <code>OnMotionEnabled</code>
: Fired when motion is enabled on this prop, either via the "Health Level to Override Motion" keyvalue or from the <code>EnableMotion</code> input.
: Motion has been enabled on the prop, either via the "Health Level to Override Motion" keyvalue or from the <code>EnableMotion</code> input.
; <code>OnAwakened</code>
; <code>OnAwakened</code>
: Fired when this prop wakes (force has been applied to it while it was asleep).
: The prop has woken (force has been applied to it while it was asleep, or the <code>wake</code> input has been called).
; {{EP1 add|<code>OnPhysGunOnlyPickup</code>}}
; {{EP1 add|<code>OnPhysGunOnlyPickup</code>}}
: Fired when a player picks the prop up with the Gravity Gun.
: Player has picked the prop up with the Gravity Gun.
; {{EP1 add|<code>OnPlayerPickup</code>}}
; {{EP1 add|<code>OnPlayerPickup</code>}}
: As above, but picking up in your hands with +USE also counts.
: Player has picked the prop up with +USE or the Gravity Gun.
; <code>OnPhysGunDrop</code>
; <code>OnPhysGunDrop</code>
: Fired when a player drops the prop. {{PlAct}}
: Player has dropped the prop (from either hands or Gravity Gun). {{PlAct}}
; <code>OnPlayerUse</code>
; <code>OnPlayerUse</code>
: Fired when a player tries to +USE the prop. {{PlAct}} {{note|This output will fire only if the "Generate output on +USE" spawnflag is set.}}
: Player has +USEd the prop. {{PlAct}} {{note|This output will fire only if the "Generate output on +USE" spawnflag is set.}}
; {{EP2 add|<code>OnOutOfWorld</code>}}
; {{EP2 add|<code>OnOutOfWorld</code>}}
: Not in a [[Visleaf|leaf]]?
; {{EP2 add|<code>OnHealthChanged</code>}}
; {{EP2 add|<code>OnHealthChanged</code>}}
; {{EP2 add|<code>OnTakeDamage</code>}}
; {{EP2 add|<code>OnTakeDamage</code>}}
{{O Targetname}}
{{O Targetname}}
}}
}}

Revision as of 11:12, 20 July 2009

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