Template:O Weapon: Difference between revisions

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

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.