logic_collision_pair

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Icon-callout-underlinked.png
This article needs more links to other pages (since January 2024). You can help improve navigation by adding links to related documentation, such as entities or tools.
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>
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.