constraint.Muscle
Entity, Entity, Entity, Entity constraint.Muscle( Player player, Entity ent1, Entity ent2, number bone1, number bone2, Vector localPos1, Vector localPos2, number length1, number length2, number width, number key, number fixed, number period, number amplitude, boolean startOn = false, string material = "", table color = color_white )
Description
Creates a muscle constraint.
Very similar to constraint.Hydraulic, but instead of a toggle between fully expanded and contracted, it will continuously alternate between the 2 states while enabled.
Arguments
Returns
1 Entity
The created constraint. (phys_spring) Will return
false
if the constraint could not be created.3 Entity
The muscle controller. (
gmod_winch_controller
) Will return nil
if the constraint could not be created.4 Entity
The slider (phys_slideconstraint) if
fixed
was exactly 1
. Will return nil otherwise, or if the constraint could not be created.