Template:O Source 2 BaseTrigger
Jump to navigation
Jump to search
{{expand|title=BaseTrigger|startcollapsed=1|noborder=0|bgcolor=initial|
- OnKilled
- Fired when the entity is killed and removed from the game. Parameter is the inflictor.
- OnStartTouch
- Fired when an entity starts touching this trigger. The touching entity (!activator) must pass this trigger's filters to cause this output to fire.
- OnStartTouchAll
- Fired when an entity starts touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered.
- OnEndTouch
- Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire.


Disable
input or an entity teleports outside of the trigger area.
OnEndTouch
can fire before OnStartTouch
under certain circumstances where both are fired on the same tick and each have the same delay. 
OnEndTouch
.

OnEndTouch
.
- OnEndTouchAll
- Fires when an entity stops touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered.
- OnTouching
- Fired when the TestTouch input is true (something is touching the trigger.)
- OnTouchingEachEntity
- Fires for each entity inside the trigger when the TestTouch input is true. Each call provides the individual entity as the activator.
- OnNotTouching
- Fired when the TestTouch input is not true (nothing is touching the trigger.)