Skip to main content

trigger_inout

trigger_inout icon
Brush entityPorted from FeaturefulSpirit of Half-Life

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:

KeyDescriptionDefault
Fire on enteringtarget

This target gets Toggle for each entity that enters.

Fire on leavingm_iszAltTarget

This target gets Toggle for each entity that leaves.

Fire on/offm_iszBothTarget

This target gets On for each entity that enters and Off for each entity that leaves.

Triggered only by entitynetname

If you set it, only an entity with this class name or this name counts, and the trigger ignores its flags.

Flags​

1Monsters

Living monsters count

2No Clients

Players don't count

4Pushables

func_pushable entities count

8Everything else

All 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​

Changes since 1.38​

  • trigger_inout is new