Garry's Mod Wiki

Garry's Mod Wiki

  Entity constraint.NoCollide( Entity ent1, Entity ent2, number bone1, number bone2 )

Description

Creates an no-collide "constraint". Disables collision between two entities.

Does not work with players.

Arguments

1 Entity ent1
First entity.
2 Entity ent2
Second entity.
3 number bone1
PhysObj number of first entity to constrain to. (0 for non-ragdolls).

See Entity:TranslateBoneToPhysBone.

4 number bone2
PhysObj number of second entity to constrain to. (0 for non-ragdolls).

See Entity:TranslateBoneToPhysBone.

Returns

1 Entity
The created constraint. (logic_collision_pair) Will return false if the constraint could not be created.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...