This article's documentation is for anything that uses the Source engine. Click here for more information.

trigger_hierarchy

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)

trigger_hierarchy is a brush entity available in all Source Source games since Alien Swarm Alien Swarm. It is also available in Black Mesa Black Mesa.

Entity description

A trigger volume that can will check if any of trigger's children pass a secondary filter.

Keyvalues

Child Filter Name (childfiltername) <filter>
Filter to use to see if activator's children trigger me. See filter_activator_name for more explanation.
Delay Before Reset (wait) <integer>
Amount of time, in seconds, after the trigger_multiple has triggered before it can be triggered again. If set to -1, it will never trigger again (in which case you should just use a trigger_once).

Inputs

TouchTest
Tests if the trigger is being touched and fires an output based on whether the value is true or false.

Outputs

OnTrigger
Fired whenever the trigger is activated.
OnTouching
Fired when the TestTouch input is true (something is touching the trigger.)
OnNotTouching
Fired when the TestTouch input is not true (nothing is touching the trigger.)
BaseTrigger
OnStartTouch
Fired when a valid entity starts touching this trigger. !activator is whatever touches the trigger.
Icon-Bug.pngBug:Spamming crouch jumps in a trigger can randomly fire OnStartTouch.
Confirm:Is it a Multiplayer issue only?
  [todo tested in?]


OnStartTouchAll
Fired when a valid entity starts touching this trigger, and no other entities are touching it. If there are any other entities touching the trigger when a new one begins to touch, only OnStartTouch will fire.
OnEndTouch
Fired when a valid entity stops touching this trigger.
Warning.pngWarning:This includes entities which are deleted while inside the trigger. In this case !activator will be invalid.
Warning.pngWarning:OnEndTouch can fire before OnStartTouch under certain circumstances where both are fired on the same tick and each have the same delay.
Note.pngFix:Add a slight delay to OnEndTouch.
Icon-Bug.pngBug:Spamming crouch jump in a trigger can randomly fire OnEndTouch.
Confirm:Is it a Multiplayer issue only?
  [todo tested in?]
OnEndTouchAll
Fired when all valid entities stop touching this trigger.
OnTouching  (in all games since Source 2007)
Fired if something is currently touching this trigger when TouchTest is fired.
OnNotTouching  (in all games since Source 2007)
Fired if nothing is currently touching this trigger when TouchTest is fired.