Template:O Weapon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Fix OnNPCPickup formatting (may cause issues, not sure))
Line 1: Line 1:
{{ScrollBox|title=Weapon|1=
{{ScrollBox|title=Weapon|
; <code>OnNPCPickup</code>
; <code>OnNPCPickup</code>
: Fires when an [[NPC]] picks up this weapon. {{activator|NPC}}
: Fires when an [[NPC]] picks up this weapon. {{activator|NPC}}

Revision as of 00:18, 13 June 2016

Weapon:
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.