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))
No edit summary
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{ScrollBox|title=Weapon|
{{lang|Template:O Weapon}}
; <code>OnNPCPickup</code>
<onlyinclude>{{minititle|Weapon}}
: Fires when an [[NPC]] picks up this weapon. {{activator|NPC}}
{{O|OnNPCPickup|activator=NPC|Fires when an [[NPC]] picks up this weapon.}}
; <code>OnPlayerUse</code>
{{O|OnPlayerUse|activator=player|Fires when the player [[+use]]s this weapon.}}
: Fires when the player [[+use]]s this weapon. {{PlAct}}
{{O|OnPlayerPickup|activator=player|Fires when a player picks up this weapon. }}
; <code>OnPlayerPickup</code>
{{O|OnCacheInteraction|Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, [[weapon_physcannon|Physcannon]] pickup, Physcannon punt.}}
: Fires when a player picks up this weapon. {{PlAct}}
<includeonly>[[Category:Weapons]]</includeonly></onlyinclude>
; <code>OnCacheInteraction</code>
[[Category:Output Templates|Weapon]]
: Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, [[weapon_physcannon|Physcannon]] pickup, Physcannon punt.
{{O Targetname}}
}}

Latest revision as of 13:29, 4 May 2025

Weapon:

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