trigger_active_weapon_detect

From Source Entities
Jump to navigation Jump to search

Code classes:

Trigger.png

trigger_active_weapon_detect is a brush entity present in L4d2-small.pngLeft 4 Dead 2. It detects when a player in its volume is holding a certain weapon in their hands.

Keyvalues[edit | edit source]

Weapon To Detect (weaponclassname) <string>
Classname of the weapon to look for.

Outputs[edit | edit source]

OnTouchedActiveWeapon
Fires when a player holding the weapon starts touching the trigger or switched to the weapon while already in the trigger.