trigger_active_weapon_detect

From Valve Developer Community
Revision as of 23:04, 20 April 2025 by Alexiscoutinho (talk | contribs) (→‎Outputs: Substituted IO templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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