Trigger active weapon detect: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy)
mNo edit summary
Line 1: Line 1:
{{lang|title=trigger_active_weapon_detect}}
{{CD|CTriggerActiveWeaponDetect}}
{{CD|CTriggerActiveWeaponDetect}}
{{l4d2 brush|trigger_active_weapon_detect}} 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 09:25, 24 January 2023

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

Template:Entity 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