Template:O Weapon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Fix OnNPCPickup formatting (may cause issues, not sure))
(Reformatted to use IO templates, added to Output Templates category)
Line 1: Line 1:
{{ScrollBox|title=Weapon|
{{ScrollBox|title=Weapon|
; <code>OnNPCPickup</code>
{{IO|OnNPCPickup|Fires when an [[NPC]] picks up this weapon. {{activator|NPC}}}}
: Fires when an [[NPC]] picks up this weapon. {{activator|NPC}}
{{IO|OnPlayerUse|Fires when the player [[+use]]s this weapon. {{PlAct}}}}
; <code>OnPlayerUse</code>
{{IO|OnPlayerPickup|Fires when a player picks up this weapon. {{PlAct}}}}
: Fires when the player [[+use]]s this weapon. {{PlAct}}
{{IO|OnCacheInteraction|Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, [[weapon_physcannon|Physcannon]] pickup, Physcannon punt.}}
; <code>OnPlayerPickup</code>
: 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}}
{{O Targetname}}
}}
}}<noinclude>
[[Category:Output Templates|Weapon]]
</noinclude>

Revision as of 19:39, 23 January 2020

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.