Template:O BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{minititle|BaseTrigger}} {{IO|OnStartTouch|Fired when a valid entity starts touching this trigger. {{ent|!activator}} is whatever touches the trigger.}} {{IO|OnStartTouchAll|...")
 
m (Added to Output Templates category)
Line 5: Line 5:
{{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=EP2|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.}}
{{IO|OnNotTouching|since=EP2|Fired if nothing is currently touching this trigger when <code>TouchTest</code> is fired.}}<noinclude>
[[Category:Output Templates|BaseTrigger]]
</noinclude>

Revision as of 19:30, 23 January 2020

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 Half-Life 2: Episode Two)
Fired if something is currently touching this trigger when TouchTest is fired.
OnNotTouching  (in all games since Half-Life 2: Episode Two)
Fired if nothing is currently touching this trigger when TouchTest is fired.