constraint.Ballsocket

From Garry's Mod
Jump to: navigation, search
 constraint.Ballsocket( )

Contents

Description

Creates a ballsocket joint.

Arguments

Entity Ent1

First entity

Arguments

Entity Ent2

Second entity

Arguments

number Bone1

Bone of first entity (0 for non-ragdolls)

Arguments

number Bone2

Bone of second entity (0 for non-ragdolls)

Arguments

Vector LocalPos

Centerposition of the joint, relative to the second entity.

Arguments

number forcelimit

Amount of force until it breaks (0 = unbreakable)

Arguments

number torquelimit

Amount of torque (rotation speed) until it breaks (0 = unbreakable)

Arguments

number nocollide

Whether the entities should be nocollided

Returns

Entity

Constraint. Will return false if the constraint could not be created.
Personal tools
Navigation