Template:O Weapon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
; <code>OnNPCPickup</code>
: Fires when an [[NPC]] picks up this weapon. {{activator|NPC}}
; <code>OnPlayerUse</code>
; <code>OnPlayerUse</code>
: Fires when the player [[+use]]s this weapon. {{PlAct}}
: Fires when the player [[+use]]s this weapon. {{PlAct}}
; <code>OnPlayerPickup</code>
; <code>OnPlayerPickup</code>
: Fires when a player picks up this weapon. {{PlAct}}
: Fires when a player picks up this weapon. {{PlAct}}
; <code>OnCacheInteraction</code>
: Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, [[weapon_physcannon|Physcannon]] pickup, Physcannon punt.
{{O Targetname}}

Revision as of 06:35, 8 December 2010

OnNPCPickup
Fires when an NPC picks up this weapon. (!activator is the NPC)
OnPlayerUse
Fires when the player +uses this weapon. (!activator is the player.)
OnPlayerPickup
Fires when a player picks up this weapon. (!activator is the player.)
OnCacheInteraction
Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, Physcannon pickup, Physcannon punt.