Template:O BasePropPhysics: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
Line 1: Line 1:
{{ScrollBox|title=BasePropPhysics|noscroll=true|
; <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.
; <code>OnAwakened</code>
: Fired when this prop wakes (force has been applied to it while it was asleep).
; {{EP1 add|<code>OnPhysGunOnlyPickup</code>}}
: Fired when a player picks the prop up with the Gravity Gun.
; {{EP1 add|<code>OnPlayerPickup</code>}}
: As above, but picking up in your hands with +USE also counts.
; <code>OnPhysGunDrop</code>
: Fired when a player drops the prop. {{PlAct}}
; <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.}}
; {{EP2 add|<code>OnOutOfWorld</code>}}
; {{EP2 add|<code>OnHealthChanged</code>}}
; {{EP2 add|<code>OnTakeDamage</code>}}
{{O Targetname}}
{{O Targetname}}
* '''OnMotionEnabled'''
}}
: Fired when motion is enabled on this prop, either via the ''Health Level to Override Motion'' keyvalue or from the ''EnableMotion'' input.
* '''OnAwakened'''
: Fired when this entity becomes awake (collision/force is applied to it while it's asleep).
* '''OnPhysGunPickup'''
: Fired when the player picks up the prop with the physcannon or +USE. {{PlAct}} {{EP1 add|Deprecated}}
* '''OnPhysGunDrop'''
: Fired when the player drops the prop with the physcannon or +USE. {{PlAct}}
* '''OnPlayerUse'''
: Fired when the player tries to +USE the physbox. This output will fire only if the ''Generate output on +USE'' spawnflag is set. {{PlAct}}
* '''{{EP1 add|OnPhysGunOnlyPickup}}'''
: Fired when a player picks this object up WITH THE PHYSGUN. +USE pickups do not fire this output.
* '''{{EP1 add|OnPlayerPickup}}'''
: Fired whenever the player picks up this prop (with the physcannon or with +USE).
* '''{{EP2 add|OnOutOfWorld}}'''
* '''{{EP2 add|OnHealthChanged}}'''
* '''{{EP2 add|OnTakeDamage}}'''

Revision as of 10:22, 20 July 2009

BasePropPhysics:
OnMotionEnabled
Fired when motion is enabled on this prop, either via the "Health Level to Override Motion" keyvalue or from the EnableMotion input.
OnAwakened
Fired when this prop wakes (force has been applied to it while it was asleep).
OnPhysGunOnlyPickup (in all games since Half-Life 2: Episode One)
Fired when a player picks the prop up with the Gravity Gun.
OnPlayerPickup (in all games since Half-Life 2: Episode One)
As above, but picking up in your hands with +USE also counts.
OnPhysGunDrop
Fired when a player drops the prop. (!activator is the player.)
OnPlayerUse
Fired when a player tries to +USE 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
Template:EP2 add
Template:EP2 add