constraint.Muscle

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

Contents

Description

Creates a muscle constraint.

Arguments

Player pl

The player that will be used to call numpad.OnDown.

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

Arguments

Vector LPos2

Arguments

number Length1

Arguments

number Length2

Arguments

number width

Width of the rope.

Arguments

number key

The key binding, corresponding to an KEY_ Enums

Arguments

number fixed

Whether the constraint is fixed.

Arguments

number period

Arguments

number amplitude

Arguments

boolean starton

Arguments

string material

Material of the rope.

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.

Returns

Entity

controller. Will return nil if the constraint could not be created.

Returns

Entity

slider. Will return nil if the fixed argument is not 1 or if the constraint could not be created.
Personal tools
Navigation