CASW_Use_Area

From Source Entities
Jump to navigation Jump to search

Code classes:

CASW_Use_Area is a code class in Alien Swarm.

Classnames:

Keyvalues[edit | edit source]

UseTarget (usetargetname) <target_destination>
An associated item which will do something upon interaction with this entity. Not used for hackable asw_doors and trigger_asw_button_areas; instead, when OnButtonHackCompleted fires, it sends inputs to change the panel skin and unlock the door, and enable auto-open on it.
Players Required (playersrequired) <integer>
How many players must be in the trigger to activate it. If the number is higher than the number of marines currently alive, it must have every alive marine inside it.
Panel Prop name (panelpropname) <target_destination>
A prop which will glow when a player steps in the trigger.

Outputs[edit | edit source]

OnRequirementFailed
Fires when a marine touches the trigger, but the number of touching players does not satisfy Players Required. Activator is that marine.