Garry's Mod Wiki

constraint.Elastic

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 )

Description

Creates an elastic 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
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

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: 65ms

DB GetPage 2
Generate Html 40
SaveChanges (1) 9
Render Body 0
Render Sidebar 12