constraint.Hydraulic

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

Contents

Description

Creates a Hydraulic 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

The width of the rope.

Arguments

number key

The key binding, corresponding to an KEY_ Enums

Arguments

number fixed

Whether the hydraulic is fixed.

Arguments

number speed

Arguments

string material

The 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. Can return nil depending on how the constraint was created. Will return nil if the constraint could not be created.

Returns

Entity

slider. Can return nil depending on how the constraint was created. Will return nil if the constraint could not be created.
Personal tools
Navigation