This article's documentation is for anything that uses the Source engine. Click here for more information.

Logic collision pair: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LanguageBar}}
{{TabsBar|main=s2|base=logic_collision_pair}}
{{Underlinked|date=January 2024}}
{{Underlinked|date=January 2024}}


<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{CD|CLogicCollisionPair|file1=logicentities.cpp}}
{{CD|CLogicCollisionPair|file1=logicentities.cpp}}
{{this is a|point entity|name=logic_collision_pair}}
{{This is a|logical entity|name=logic_collision_pair}}


It can be used to enable/disable [[VPhysics]] collisions between two target entities.
It can be used to enable/disable [[VPhysics]] collisions between two target entities.
Line 14: Line 16:


== Inputs ==
== Inputs ==
{{IO|EnableCollisions|Enable collisions between the first and second entity.}}
{{I|EnableCollisions|Enable collisions between the first and second entity.}}
{{IO|DisableCollisions|Disable collisions between the first and second entity.}}
{{I|DisableCollisions|Disable collisions between the first and second entity.}}

Latest revision as of 04:52, 29 April 2025

English (en)Translate (Translate)
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
C++ Class hierarchy
CLogicCollisionPair
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ logicentities.cpp

logic_collision_pair is a logical entity available in all Source Source games.

It can be used to enable/disable VPhysics collisions between two target entities.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Attachment 1 (attach1) <targetname>
The first entity.
Attachment 2 (attach2) <targetname>
The second entity.
Note.pngNote:These targetnames are evaluated at enable time. !activator and !caller are not accepted.
Start with collisions disabled (StartDisabled) <boolean>
If Yes, starts with collisions between the pair disabled. If No, starts with collisions between the pair enabled.

Inputs

EnableCollisions
Enable collisions between the first and second entity.
DisableCollisions
Disable collisions between the first and second entity.