Template:O Trigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (stopped the language bar from showing up when transcluded.)
m (Changed EP2 to Source 2007)
Line 4: Line 4:
{{Warning|This includes entities which are deleted while inside the trigger. In this case <tt>!activator</tt> will be invalid.}}}}
{{Warning|This includes entities which are deleted while inside the trigger. In this case <tt>!activator</tt> will be invalid.}}}}
{{IO|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|last exiting entity.}}}}
{{IO|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|last exiting entity.}}}}
{{IO|OnTouching||since=EP2}}
{{IO|OnTouching||since={{Src07}}}}
{{IO|OnNotTouching|Fired when the <code>TouchTest</code> input is called.|since=EP2}}
{{IO|OnNotTouching|Fired when the <code>TouchTest</code> input is called.|since={{Src07}}}}
{{O TriggerOnce}}}}</onlyinclude>
{{O TriggerOnce}}}}</onlyinclude>

Revision as of 18:53, 8 April 2023

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.)
OnTouching  (in all games since Source 2007)
OnNotTouching  (in all games since Source 2007)
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.