Template:O Weapon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (added language bar. can also be made to show OnKilled.)
(-cleanup)
Line 1: Line 1:
{{lang|Template:O Weapon}}
{{lang|Template:O Weapon}}
{{tip|You can add <tt>l4d{{=}}1</tt> to make {{tl|O BaseEntity}} show the <tt>OnKilled</tt> output.}}
<onlyinclude>{{minititle|Weapon}}
<onlyinclude>{{minititle|Weapon}}
{{IO|OnNPCPickup|Fires when an [[NPC]] picks up this weapon. {{activator|NPC.}}}}
{{IO|OnNPCPickup|Fires when an [[NPC]] picks up this weapon. {{activator|NPC.}}}}
Line 6: Line 5:
{{IO|OnPlayerPickup|Fires when a player picks up this weapon. {{PlAct}}}}
{{IO|OnPlayerPickup|Fires when a player picks up 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.}}
{{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 BaseEntity|l4d={{{l4d|}}}}}<includeonly>[[Category:Weapons]]</includeonly></onlyinclude>
<includeonly>[[Category:Weapons]]</includeonly></onlyinclude>
[[Category:Output Templates|Weapon]]
[[Category:Output Templates|Weapon]]

Revision as of 13:48, 2 July 2024

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.