Template:O BaseTrigger: Difference between revisions
Jump to navigation
Jump to search
Warning:This includes entities which are deleted while inside the trigger. In this case !activator will be invalid.
m (Fix) |
No edit summary |
||
Line 2: | Line 2: | ||
{{IO|OnStartTouch|Fired when a valid entity starts touching this trigger. {{ent|!activator}} is whatever touches the trigger.}} | {{IO|OnStartTouch|Fired when a valid entity starts touching this trigger. {{ent|!activator}} is whatever touches the trigger.}} | ||
{{IO|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 <code>OnStartTouch</code> will fire.}} | {{IO|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 <code>OnStartTouch</code> will fire.}} | ||
{{IO|OnEndTouch|Fired when a valid entity stops touching this trigger.}} | {{IO|OnEndTouch|Fired when a valid entity stops touching this trigger. | ||
{{Warning|This includes entities which are deleted while inside the trigger. In this case <tt>!activator</tt> will be invalid.}}}} | |||
{{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={{Src07}}|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.}} |
Revision as of 05:58, 8 August 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
)
- Fired if something is currently touching this trigger when
TouchTest
is fired.
- OnNotTouching (in all games since
)
- Fired if nothing is currently touching this trigger when
TouchTest
is fired.