trigger_inout

A trigger_inout is a brush trigger that fires one target when an entity enters it and another when the entity leaves
it, with that entity as the activator.
Attributes
The entity also has these common keys:
- Naming and triggering: Name and Master
KeyDescriptionDefault
Fire on entering
targetThis target gets Toggle for each entity that enters.
Fire on leaving
m_iszAltTargetThis target gets Toggle for each entity that leaves.
Fire on/off
m_iszBothTargetThis target gets On for each entity that enters and Off for each entity that leaves.
Triggered only by entity
netnameIf you set it, only an entity with this class name or this name counts, and the trigger ignores its flags.
Flags
1MonstersLiving monsters count
2No ClientsPlayers don't count
4Pushablesfunc_pushable entities count
8Everything elseAll other entities count, for example the touch helper of a func_vehicle
Notes
- Every 0.1 seconds, it checks against the trigger's box which entities have left
- Players only count while they are alive, so a player inside who dies, becomes a spectator or leaves the game counts as having left
- It checks the master for each entity, with that entity as the activator. While the master is off, entering and leaving fire nothing
- It keeps track of up to 64 entities inside at once, and it ignores any more
See also
trigger_multiple- fires while something touches it- Masters and states - how
trigger_inoutcan drive a state
Changes since 1.38
trigger_inoutis new

