Template:I BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Fix)
m (→‎top: Substituted IO templates)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>Hide the TF2 input with <code>|notf2=1</code>
{{ulf|en=1|hr=1}}
</noinclude>{{minititle|BaseTrigger}}
[[Category:Input Templates|Trigger]]
{{IO|Toggle|Toggles this trigger between enabled and disabled states.}}
<onlyinclude>{{expand|title=BaseTrigger|startcollapsed={{{startcollapsed|1}}}|noborder={{#ifeq:{{{startcollapsed}}}|0|1|0}}|bgcolor=initial|
{{IO|TouchTest|since={{Src07}}|For testing if something is ''currently'' touching the trigger. Fires either the <code>OnTouching</code> or <code>OnNotTouching</code> output.}}
{{I|Toggle|{{#switch: {{language}}
{{IO|StartTouch|since={{Src07}}|nofgd=1|Fires the <code>OnStartTouch</code> output.}}
| #default = Toggles this trigger between enabled and disabled states.
{{IO|EndTouch|since={{Src07}}|nofgd=1|Fires the <code>OnEndTouch</code> output.}}<!--
| hr = Prebacuje ovaj okidač između omogućenog i onemogućenog stanja.
-->{{#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|Enable|{{#switch: {{language}}
[[Category:Input Templates|BaseTrigger]]
| #default = Enable trigger
</noinclude>
| hr = Omogući okidač
}}}}
{{I|Disable|{{#switch: {{language}}
| #default = Disable trigger
| hr = Onemogući okidač
}}}}
{{I|TouchTest|{{#switch: {{language}}
| #default = Triggers either the <tt>OnTouching</tt> or <tt>OnNotTouching</tt> outputs for whether anything is touching this entity. {{bug|tested={{hl2}}|Sleeping [[prop_physics]] will never fire "OnTouching". Also applies to entities using prop_physics as base.}}
| hr = Pokreće izlaze <tt>OnTouching</tt> ili <tt>OnNotTouching</tt> da bi se utvrdilo dodiruje li nešto ovaj entitet.{{bug|tested={{hl2}}|Uspavana {{Lx|prop_physics}} nikada neće pokrenuti "OnTouching". Također se odnosi na entitete koji koriste prop_physics kao bazu.}}
}}|since={{Src07}}}}
{{I|StartTouch|{{#switch: {{language}}
| #default = Behave as if the {{ent|!caller}} entity had just entered the trigger volume. Accepts non-physical entities.
| hr = Ponašajte se kao da je entitet {{ent|!caller}} upravo ušao u glasnoću okidača. Prihvaća nefizičke entitete.
}}|since={{Src07}}|nofgd=1}}
{{I|EndTouch|{{#switch: {{language}}
| #default = Behave as if <tt>!caller</tt> had just exited the trigger volume.
| hr = Ponašajte se kao da je <tt>!caller</tt> upravo izašao iz glasnoće okidača.
}}|since={{Src07}}|nofgd=1}}
{{I|DisableAndEndTouch|{{#switch: {{language}}
| #default = Disables this trigger and calls <tt>EndTouch</tt> on all currently-touching entities.
|hr = Onemogućuje ovaj okidač i poziva <tt>EndTouch</tt> na svim entitetima koji se trenutno dodiruju.
}}|only={{Src13mp}}{{Tf2branch}}}}
}}</onlyinclude>

Latest revision as of 12:54, 21 April 2025

English (en)Hrvatski (hr)
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.
Icon-Bug.pngBug:Sleeping prop_physics will never fire "OnTouching". Also applies to entities using prop_physics as base.  (tested in: Half-Life 2)
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 MultiplayerTeam Fortress 2 branch)
Disables this trigger and calls EndTouch on all currently-touching entities.