trigger_inout

XashXT

trigger_inout

A recreation of the entity from Spirit of Half-Life. Triggers twice: activates what is in the target field when the trigger area is entered and activates the m_iszAltTarget field when the area is exited.

Spawnflags

SF_TRIGGER_ALLOWMONSTERS 1 (makes the trigger respond to NPCs)
SF_TRIGGER_NOCLIENTS 2 (prevents the trigger from responding to the player)
SF_TRIGGER_PUSHABLES 4 (makes the trigger respond to func_pushable)
SF_TRIGGER_CHECKANGLES 8 (borrowed from Quake; the trigger works only if its angles and the angles of the object are pointing in the same general direction on YAW)
SF_TRIGGER_ALLOWPHYSICS 16 (makes the trigger respond to any physics objects, not necessarily func_physbox)

Options

netname Filter for activating only objects of a specific class (classname) or with a specific name (targetname).
target Target that is activated when the trigger area is entered.
m_iszAltTarget Target that is activated when the trigger area is exited.
m_iszBothTarget Target that is activated when the trigger area is entered and exited.

Usage Details

  • If you delete a trigger_inout from the map, it activates the targets in m_iszAltTarget and m_iszBothTarget before it disappears. This happens only in XashXT, but not in Spirit of Half-Life.