Template:O BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added to Output Templates category)
m (Fix)
Line 4: Line 4:
{{IO|OnEndTouch|Fired when a valid entity stops touching this trigger.}}
{{IO|OnEndTouch|Fired when a valid entity stops touching this trigger.}}
{{IO|OnEndTouchAll|Fired when ''all'' valid entities stop touching this trigger.}}
{{IO|OnEndTouchAll|Fired when ''all'' valid entities stop touching this trigger.}}
{{IO|OnTouching|since=EP2|Fired if something is currently touching this trigger when <code>TouchTest</code> is fired.}}
{{IO|OnTouching|since={{Src07}}|Fired if something is currently touching this trigger when <code>TouchTest</code> is fired.}}
{{IO|OnNotTouching|since=EP2|Fired if nothing is currently touching this trigger when <code>TouchTest</code> is fired.}}<noinclude>
{{IO|OnNotTouching|since={{Src07}}|Fired if nothing is currently touching this trigger when <code>TouchTest</code> is fired.}}<noinclude>
[[Category:Output Templates|BaseTrigger]]
[[Category:Output Templates|BaseTrigger]]
</noinclude>
</noinclude>

Revision as of 00:23, 9 April 2023

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.
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.