Garry's Mod Wiki

constraint.Winch

constraint.Winch

  Entity, Entity, Entity constraint.Winch( Player pl, Entity Ent1, Entity Ent2, number Bone1, number Bone2, Vector LPos1, Vector LPos2, number width, number fwd_bind, number bwd_bind, number fwd_speed, number bwd_speed, string material, boolean toggle, table color )

Description

Creates a Winch constraint.

Arguments

1 Player pl
The player that will be used to call numpad.OnDown and numpad.OnUp.
2 Entity Ent1
First entity.
3 Entity Ent2
Second entity.
4 number Bone1
Bone of first entity (0 for non-ragdolls),
5 number Bone2
Bone of second entity (0 for non-ragdolls).
6 Vector LPos1
7 Vector LPos2
8 number width
The width of the rope.
9 number fwd_bind
The key binding for "forward", corresponding to an Enums/KEY
10 number bwd_bind
The key binding for "backwards", corresponding to an Enums/KEY
11 number fwd_speed
Forward speed.
12 number bwd_speed
Backwards speed.
13 string material
The material of the rope.
14 boolean toggle
Whether the winch should be on toggle.
15 table color
The color of the rope. See Color.

Returns

1 Entity
Constraint. Can return nil. Will return false if the constraint could not be created.
2 Entity
rope. Will return nil if the constraint could not be created.
3 Entity
controller. Can return nil.

Special Pages


Wikis

?

Render Time: 66ms

DB GetPage 25
Generate Html 25
SaveChanges (1) 6
Render Body 0
Render Sidebar 8