constraint.Rope

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

Contents

Description

Creates a rope constraint - with rope!

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 LPos1

Position of first end of the rope. Local to Ent1.

Arguments

Vector LPos2

Position of second end of the rope. Local to Ent2.

Arguments

number length

Length of the rope.

Arguments

number addlength

Amount to add to the length of the rope. Works as it does in the Rope tool.

Arguments

number forcelimit

Amount of force until it breaks (0 = unbreakable).

Arguments

number width

Width of the rope.

Arguments

string material

Material of the rope.

Arguments

boolean rigid

Whether the constraint is rigid.

Returns

Entity

Constraint. Will be a keyframe_rope if you roping to the same bone on the same entity. Will return false if the constraint could not be created.

Returns

Entity

rope. Will return nil if "Constraint" is a keyframe_rope or if the constraint could not be created.
Personal tools
Navigation