Template:I BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Fix)
(-cleanup)
Line 1: Line 1:
<noinclude>Hide the TF2 input with <code>|notf2=1</code>
[[Category:Input Templates|Trigger]]
</noinclude>{{minititle|BaseTrigger}}
<onlyinclude>{{ScrollBox|title=BaseTrigger|noscroll=true|
{{IO|Toggle|Toggles this trigger between enabled and disabled states.}}
{{IO|Toggle|Toggles this trigger between enabled and disabled states.}}
{{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|Enable|Enable trigger}}
{{IO|StartTouch|since={{Src07}}|nofgd=1|Fires the <code>OnStartTouch</code> output.}}
{{IO|Disable|Disable trigger}}
{{IO|EndTouch|since={{Src07}}|nofgd=1|Fires the <code>OnEndTouch</code> output.}}<!--
{{IO|TouchTest|Triggers either the <tt>OnTouching</tt> or <tt>OnNotTouching</tt> outputs for whether anything is touching this entity.|since={{Src07}}}}
-->{{#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.}}}}
{{IO|StartTouch|Behave as if the {{ent|!caller}} entity had just entered the trigger volume. Accepts non-physical entities.|since={{Src07}}|nofgd=1}}
{{I EnableDisable}}<noinclude>
{{IO|EndTouch|Behave as if <tt>!caller</tt> had just exited the trigger volume.|since={{Src07}}|nofgd=1}}
[[Category:Input Templates|BaseTrigger]]
{{IO|DisableAndEndTouch|Disables this trigger and calls <tt>EndTouch</tt> on all currently-touching entities.|only={{Src13mp}}({{Tf2}})}} }}
</noinclude>
</onlyinclude>

Revision as of 05:40, 8 August 2023

BaseTrigger:
Toggle
Toggles this trigger between enabled and disabled states.
Enable
Enable trigger
Disable
Disable trigger
TouchTest  (in all games since Source 2007)
Triggers either the OnTouching or OnNotTouching outputs for whether anything is touching this entity.
StartTouch  (in all games since Source 2007) !FGD
Behave as if the !caller entity had just entered the trigger volume. Accepts non-physical entities.
EndTouch  (in all games since Source 2007) !FGD
Behave as if !caller had just exited the trigger volume.
DisableAndEndTouch  (only in Source 2013 Multiplayer(Team Fortress 2))
Disables this trigger and calls EndTouch on all currently-touching entities.