Garry's Mod Wiki

constraint.Muscle

constraint.Muscle

Entity, Entity, Entity, Entity constraint.Muscle( 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 period, number amplitude, boolean starton, string material, table color )

Description

Creates a muscle 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
Width of the rope.
11 number key
The key binding, corresponding to an Enums/KEY
12 number fixed
Whether the constraint is fixed.
13 number period
14 number amplitude
15 boolean starton
16 string material
Material of the rope.
17 table color
The color of the rope. See Color.

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. Will return nil if the constraint could not be created.
4 Entity
slider. Will return nil if the fixed argument is not 1 or if the constraint could not be created.

Special Pages


Wikis

?

Render Time: 82ms

DB GetPage 45
Generate Html 23
SaveChanges (1) 5
Render Body 0
Render Sidebar 6