Template:O Weapon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 intermediate revisions by 8 users not shown)
Line 1: Line 1:
; <code>OnPlayerUse</code>
{{lang|Template:O Weapon}}
: Fires when the player [[+use]]s this weapon. {{PlAct}}
<onlyinclude>{{minititle|Weapon}}
; <code>OnPlayerPickup</code>
{{O|OnNPCPickup|activator=NPC|Fires when an [[NPC]] picks up this weapon.}}
: Fires when a player picks up this weapon. {{PlAct}}
{{O|OnPlayerUse|activator=player|Fires when the player [[+use]]s this weapon.}}
{{O|OnPlayerPickup|activator=player|Fires when a player picks up this weapon. }}
{{O|OnCacheInteraction|Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, [[weapon_physcannon|Physcannon]] pickup, Physcannon punt.}}
<includeonly>[[Category:Weapons]]</includeonly></onlyinclude>
[[Category:Output Templates|Weapon]]

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.