constraint.Elastic

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

Contents

Description

Creates an elastic constraint.

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 constant

Arguments

number damping

Arguments

number rdamping

Arguments

string material

The material of the rope.

Arguments

number width

Width of rope.

Arguments

boolean stretchonly

Returns

Entity

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

Returns

Entity

rope. Will return nil if the constraint could not be created.
Personal tools
Navigation