constraint.Winch

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

Contents

Description

Creates a Winch constraint.

Arguments

Player pl

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

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 width

The width of the rope.

Arguments

number fwd_bind

The key binding for "forward", corresponding to an KEY_ Enums

Arguments

number bwd_bind

The key binding for "backwards", corresponding to an KEY_ Enums

Arguments

number fwd_speed

Forward speed.

Arguments

number bwd_speed

Backwards speed.

Arguments

string material

The material of the rope.

Arguments

boolean toggle

Whether the winch should be on toggle.

Returns

Entity

Constraint. Can return nil. 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.
Personal tools
Navigation