Template:I BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: Substituted IO templates)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ulf|en=1|hr=1}}
[[Category:Input Templates|Trigger]]
[[Category:Input Templates|Trigger]]
<onlyinclude>{{expand|title=BaseTrigger|startcollapsed={{{startcollapsed|1}}}|noborder={{#ifeq:{{{startcollapsed}}}|0|1|0}}|bgcolor=initial|
<onlyinclude>{{expand|title=BaseTrigger|startcollapsed={{{startcollapsed|1}}}|noborder={{#ifeq:{{{startcollapsed}}}|0|1|0}}|bgcolor=initial|
{{IO|Toggle|Toggles this trigger between enabled and disabled states.}}
{{I|Toggle|{{#switch: {{language}}
{{IO|Enable|Enable trigger}}
| #default = Toggles this trigger between enabled and disabled states.
{{IO|Disable|Disable trigger}}
| hr = Prebacuje ovaj okidač između omogućenog i onemogućenog stanja.
{{IO|TouchTest|Triggers either the <tt>OnTouching</tt> or <tt>OnNotTouching</tt> outputs for whether anything is touching this entity.|since={{Src07}}}}
}}}}
{{IO|StartTouch|Behave as if the {{ent|!caller}} entity had just entered the trigger volume. Accepts non-physical entities.|since={{Src07}}|nofgd=1}}
{{I|Enable|{{#switch: {{language}}
{{IO|EndTouch|Behave as if <tt>!caller</tt> had just exited the trigger volume.|since={{Src07}}|nofgd=1}}
| #default = Enable trigger
{{IO|DisableAndEndTouch|Disables this trigger and calls <tt>EndTouch</tt> on all currently-touching entities.|only={{Tf2}}{{Src13mp}}}}}}</onlyinclude>
| 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.