Template:I BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: Substituted IO templates)
 
Line 2: Line 2:
[[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|{{#switch: {{language}}
{{I|Toggle|{{#switch: {{language}}
| #default = Toggles this trigger between enabled and disabled states.
| #default = Toggles this trigger between enabled and disabled states.
| hr = Prebacuje ovaj okidač između omogućenog i onemogućenog stanja.
| hr = Prebacuje ovaj okidač između omogućenog i onemogućenog stanja.
}}}}
}}}}
{{IO|Enable|{{#switch: {{language}}
{{I|Enable|{{#switch: {{language}}
| #default = Enable trigger
| #default = Enable trigger
| hr = Omogući okidač
| hr = Omogući okidač
}}}}
}}}}
{{IO|Disable|{{#switch: {{language}}
{{I|Disable|{{#switch: {{language}}
| #default = Disable trigger
| #default = Disable trigger
| hr = Onemogući okidač
| hr = Onemogući okidač
}}}}
}}}}
{{IO|TouchTest|{{#switch: {{language}}
{{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.}}
| #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.}}
| 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}}}}
}}|since={{Src07}}}}
{{IO|StartTouch|{{#switch: {{language}}
{{I|StartTouch|{{#switch: {{language}}
| #default = Behave as if the {{ent|!caller}} entity had just entered the trigger volume. Accepts non-physical entities.
| #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.
| 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}}
}}|since={{Src07}}|nofgd=1}}
{{IO|EndTouch|{{#switch: {{language}}
{{I|EndTouch|{{#switch: {{language}}
| #default = Behave as if <tt>!caller</tt> had just exited the trigger volume.
| #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.
| hr = Ponašajte se kao da je <tt>!caller</tt> upravo izašao iz glasnoće okidača.
}}|since={{Src07}}|nofgd=1}}
}}|since={{Src07}}|nofgd=1}}
{{IO|DisableAndEndTouch|{{#switch: {{language}}
{{I|DisableAndEndTouch|{{#switch: {{language}}
| #default = Disables this trigger and calls <tt>EndTouch</tt> on all currently-touching entities.
| #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.
|hr = Onemogućuje ovaj okidač i poziva <tt>EndTouch</tt> na svim entitetima koji se trenutno dodiruju.
}}|only={{Src13mp}}{{Tf2branch}}}}
}}|only={{Src13mp}}{{Tf2branch}}}}
}}</onlyinclude>
}}</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.