Template:O Weapon: Difference between revisions

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

Revision as of 13:00, 16 October 2022

Tip.pngTip:You can add l4d=1 to make {{O BaseEntity}} show the OnKilled output.

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.