Template:O Trigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
; <code>OnEndTouch</code>
; <code>OnEndTouch</code>
: Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire. {{activator|exiting entity}}
: Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire. {{activator|exiting entity}}
{{Warning|This includes entities which are deleted while inside the trigger. In this case [[activator]] will be invalid.}}
; <code>OnEndTouchAll</code>
; <code>OnEndTouchAll</code>
: Fires when the last entity in the entity's area exits this trigger or when this entity is disabled. Only entities that passed this trigger's filters are considered.  {{activator|last exiting entity}}
: Fires when the last entity in the entity's area exits this trigger or when this entity is disabled. Only entities that passed this trigger's filters are considered.  {{activator|last exiting entity}}

Revision as of 18:06, 27 August 2019

Trigger:
OnEndTouch
Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire. (!activator is the exiting entity)
Warning.pngWarning:This includes entities which are deleted while inside the trigger. In this case activator will be invalid.
OnEndTouchAll
Fires when the last entity in the entity's area exits this trigger or when this entity is disabled. Only entities that passed this trigger's filters are considered. (!activator is the last exiting entity)
Template:EP2 add
Template:EP2 add
Fired when the TouchTest input is called.

TriggerOnce:

OnStartTouch
Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire. (!activator is the "toucher.")
OnTrigger
Fired repeatedly with a delay while an entity is within this trigger's volume. Delay is defined by Delay Before Reset key.