constraint.Motor

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

Contents

Description

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

Arguments

Vector LPos2

Arguments

number friction

Arguments

number torque

Arguments

number forcetime

Arguments

number nocollide

Whether the entities should be no-collided.

Arguments

number toggle

Whether the constraint is on toggle.

Arguments

Player pl

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

Arguments

number forcelimit

Amount of force until it breaks (0 = unbreakable)

Arguments

number numpadkey_fwd

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

Arguments

number numpadkey_bwd

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

Arguments

number direction

Arguments

Vector LocalAxis

Returns

Entity

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

Returns

Entity

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