Template:O Source 2 BaseTrigger: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (→top: Substituted IO templates) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{expand|title=BaseTrigger|startcollapsed={{{startcollapsed|1}}}|noborder={{#ifeq:{{{startcollapsed}}}|0|1|0}}|bgcolor=initial| | {{expand|title=BaseTrigger|startcollapsed={{{startcollapsed|1}}}|noborder={{#ifeq:{{{startcollapsed}}}|0|1|0}}|bgcolor=initial| | ||
{{ | {{O|OnKilled|Fired when the entity is killed and removed from the game. Parameter is the inflictor.}} | ||
{{ | {{O|OnStartTouch|Fired when an entity starts touching this trigger. The touching entity ({{ent|!activator}}) must pass this trigger's filters to cause this output to fire.}} | ||
{{O|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.}} | |||
{{ | {{O|OnEndTouch|Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire. | ||
{{ | |||
{{Warning|offset=1|This includes entities which are deleted while inside the trigger. In this case {{ent|!activator}} will be invalid.}} | {{Warning|offset=1|This includes entities which are deleted while inside the trigger. In this case {{ent|!activator}} will be invalid.}} | ||
{{Warning|offset=1|Will also fire if sent <code>Disable</code> input or an entity teleports outside of the trigger area.}} | {{Warning|offset=1|Will also fire if sent <code>Disable</code> input or an entity teleports outside of the trigger area.}} | ||
| Line 11: | Line 10: | ||
}} | }} | ||
{{bug|offset=1|Spamming crouch jump in a trigger can randomly fire <code>OnEndTouch</code>.{{Confirm|Is it a Multiplayer issue only?, also old Source 1 issue, confirm if the same thing happen in Source2.}}}} | {{bug|offset=1|Spamming crouch jump in a trigger can randomly fire <code>OnEndTouch</code>.{{Confirm|Is it a Multiplayer issue only?, also old Source 1 issue, confirm if the same thing happen in Source2.}}}} | ||
}} | |||
{{O|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.}} | |||
{{ | {{O|OnTouching|Fired when the TestTouch input is true (something is touching the trigger.)}} | ||
{{O|OnTouchingEachEntity|Fires for each entity inside the trigger when the TestTouch input is true. Each call provides the individual entity as the activator.}} | |||
{{ | {{O|OnNotTouching|Fired when the TestTouch input is not true (nothing is touching the trigger.)}}}}<noinclude> | ||
{{ | |||
[[Category:Output Templates/Source_2|BaseTrigger]] | [[Category:Output Templates/Source_2|BaseTrigger]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 12:12, 21 April 2025
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.
|