trigger_hierarchy

From Valve Developer Community
Jump to: navigation, search
English (en)
... Icon-Important.png

trigger_hierarchy is a brush entity available in Portal 2 Portal 2.

Entity description

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

Keyvalues

Child Filter Name <filter>
Filter to use to see if activator's children trigger me. See filter_activator_name for more explanation.
Delay Before Reset <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.
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.
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.