Template:I BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added a thing for hiding the tf2 input)
m (Added to Input Templates category)
Line 6: Line 6:
{{IO|EndTouch|since=EP2|nofgd=1|Fires the <code>OnEndTouch</code> output.}}<!--
{{IO|EndTouch|since=EP2|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=TF2|Disables this trigger and acts as if all currently touching entities have stopped touching it immediately. {{tf2}} only.}}}}
{{I EnableDisable}}
{{I EnableDisable}}<noinclude>
[[Category:Input Templates|BaseTrigger]]
</noinclude>

Revision as of 18:29, 23 January 2020

Hide the TF2 input with |notf2=1 BaseTrigger:

Toggle
Toggles this trigger between enabled and disabled states.
TouchTest  (in all games since Half-Life 2: Episode Two)
For testing if something is currently touching the trigger. Fires either the OnTouching or OnNotTouching output.
StartTouch  (in all games since Half-Life 2: Episode Two) !FGD
Fires the OnStartTouch output.
EndTouch  (in all games since Half-Life 2: Episode Two) !FGD
Fires the OnEndTouch output.
DisableAndEndTouch  (in all games since Team Fortress 2)
Disables this trigger and acts as if all currently touching entities have stopped touching it immediately. Team Fortress 2 only.

EnableDisable:

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