Trigger active weapon detect: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{lang|title=trigger_active_weapon_detect}}
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{CD|CTriggerActiveWeaponDetect}}
{{CD|CTriggerActiveWeaponDetect}}
{{this is a|e2|name=trigger_active_weapon_detect|game=Left 4 Dead 2}} It fires an output when touched by a player that has a specific weapon active.
{{entity|trigger_active_weapon_detect|type=e2|game=Left 4 Dead 2}} It fires an output when touched by a player that has a specific weapon active.


== Keyvalues ==
== Keyvalues ==

Revision as of 13:05, 4 January 2024

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

trigger_active_weapon_detect is an e2 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