Template:I BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added to Input Templates category)
m (Fix)
Line 2: Line 2:
</noinclude>{{minititle|BaseTrigger}}
</noinclude>{{minititle|BaseTrigger}}
{{IO|Toggle|Toggles this trigger between enabled and disabled states.}}
{{IO|Toggle|Toggles this trigger between enabled and disabled states.}}
{{IO|TouchTest|since=EP2|For testing if something is ''currently'' touching the trigger. Fires either the <code>OnTouching</code> or <code>OnNotTouching</code> output.}}
{{IO|TouchTest|since={{Src07}}|For testing if something is ''currently'' touching the trigger. Fires either the <code>OnTouching</code> or <code>OnNotTouching</code> output.}}
{{IO|StartTouch|since=EP2|nofgd=1|Fires the <code>OnStartTouch</code> output.}}
{{IO|StartTouch|since={{Src07}}|nofgd=1|Fires the <code>OnStartTouch</code> output.}}
{{IO|EndTouch|since=EP2|nofgd=1|Fires the <code>OnEndTouch</code> output.}}<!--
{{IO|EndTouch|since={{Src07}}|nofgd=1|Fires the <code>OnEndTouch</code> output.}}<!--
-->{{#if:{{{notf2|}}}||{{IO|DisableAndEndTouch|since=TF2|Disables this trigger and acts as if all currently touching entities have stopped touching it immediately. {{tf2}} only.}}}}
-->{{#if:{{{notf2|}}}||{{IO|DisableAndEndTouch|since={{Src13mp}}({{Tf2}})|Disables this trigger and acts as if all currently touching entities have stopped touching it immediately. {{tf2|4}}'s branch of {{Src13mp|4}} only.}}}}
{{I EnableDisable}}<noinclude>
{{I EnableDisable}}<noinclude>
[[Category:Input Templates|BaseTrigger]]
[[Category:Input Templates|BaseTrigger]]
</noinclude>
</noinclude>

Revision as of 00:23, 9 April 2023

Hide the TF2 input with |notf2=1 BaseTrigger:

Toggle
Toggles this trigger between enabled and disabled states.
TouchTest  (in all games since Source 2007)
For testing if something is currently touching the trigger. Fires either the OnTouching or OnNotTouching output.
StartTouch  (in all games since Source 2007) !FGD
Fires the OnStartTouch output.
EndTouch  (in all games since Source 2007) !FGD
Fires the OnEndTouch output.
DisableAndEndTouch  (in all games since Source 2013 Multiplayer(Team Fortress 2))
Disables this trigger and acts as if all currently touching entities have stopped touching it immediately. Team Fortress 2 Team Fortress 2's branch of Source 2013 Multiplayer Source 2013 Multiplayer only.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.