Template:I BaseTrigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added bug about sleeping prop_physics not triggering "onTouching". Also added a google translate version for croatian, which i'm not sure if it is correct.)
m (Translation is correct, i dont know which template to use for prop_physics)
Line 16: Line 16:
{{IO|TouchTest|{{#switch: {{language}}
{{IO|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 [[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}}
{{IO|StartTouch|{{#switch: {{language}}

Revision as of 05:27, 24 January 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 Team Fortress 2Source 2013 Multiplayer)
Disables this trigger and calls EndTouch on all currently-touching entities.