Garry's Mod Wiki

constraint.Slider

Entity, Entity constraint.Slider( Entity Ent1, Entity Ent2, number Bone1, number Bone2, Vector LPos1, Vector LPos2, number width, string material )

Description

Creates a slider constraint.

Arguments

1 Entity Ent1
First entity.
2 Entity Ent2
Second entity.
3 number Bone1
Bone of first entity (0 for non-ragdolls),
4 number Bone2
Bone of second entity (0 for non-ragdolls).
5 Vector LPos1
6 Vector LPos2
7 number width
The width of the rope.
8 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.

Page Links


Special Pages


Wikis

?

Render Time: 60ms

DB GetPage 6
Generate Html 30
SaveChanges (1) 9
Render Body 0
Render Sidebar 12