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
mNo edit summary
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{lang|title=logic_collision_pair}}
<!-- When this page is updated to {{langsp}} or {{language subpage}} 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|e0|name=logic_collision_pair}}
{{entity|logic_collision_pair|type=e0}}


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.

Revision as of 11:44, 4 January 2024

English (en)Translate (Translate)
C++ Class hierarchy
CLogicCollisionPair
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ logicentities.cpp

logic_collision_pair is an e0 available in all Source Source games.

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

Keyvalues

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.
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

Inputs

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