Trigger active weapon detect: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
m (→‎Outputs: Substituted IO templates)
 
Line 6: Line 6:


== Outputs ==
== Outputs ==
{{IO|OnTouchedActiveWeapon|Touched a player who has our weapon active}}
{{O|OnTouchedActiveWeapon|Touched a player who has our weapon active}}

Latest revision as of 23:04, 20 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CTriggerActiveWeaponDetect
CBaseTrigger
CBaseToggle
CBaseEntity

trigger_active_weapon_detect is a brush entity available in Left 4 Dead 2 Left 4 Dead 2. It fires an output when touched by a player that has a specific weapon active.

Keyvalues

Weapon To Detect (weaponclassname) <string>
weapon classname that player must have active

Outputs

OnTouchedActiveWeapon
Touched a player who has our weapon active