Garry's Mod Wiki

constraint.Hydraulic

Entity, Entity, Entity, Entity constraint.Hydraulic( Player pl, Entity Ent1, Entity Ent2, number Bone1, number Bone2, Vector LPos1, Vector LPos2, number Length1, number Length2, number width, number key, number fixed, number speed, string material )

Description

Creates a Hydraulic constraint.

Arguments

1 Player pl
The player that will be used to call numpad.OnDown.
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 Length1
9 number Length2
10 number width
The width of the rope.
11 number key
The key binding, corresponding to an Enums/KEY
12 number fixed
Whether the hydraulic is fixed.
13 number speed
14 string material
The material of the rope.

Returns

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

Page Links


Special Pages


Wikis

?

Render Time: 82ms

DB GetPage 9
Generate Html 51
SaveChanges 9
Render Body 0
Render Sidebar 11