Garry's Mod Wiki


  Entity, Entity constraint.Elastic( Entity Ent1, Entity Ent2, number Bone1, number Bone2, Vector LPos1, Vector LPos2, number constant, number damping, number rdamping, string material, number width, boolean stretchonly, table color )


Creates an elastic constraint.


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
Position of first end of the rope. Local to Ent1.
6 Vector LPos2
Position of second end of the rope. Local to Ent2.
7 number constant
8 number damping
9 number rdamping
10 string material
The material of the rope.
11 number width
Width of rope.
12 boolean stretchonly
13 table color
The color of the rope. See Color.


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.