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

logic_collision_pair

From Valve Developer Community
Jump to: navigation, search
English (en)
... Icon-Important.png
class hierarchy
CLogicCollisionPair defined in logicentities.cpp
CLogicalEntity
CServerOnlyEntity
CBaseEntity

 logic_collision_pair is a point entity 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.

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Inputs

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