constraint.Rope
Entity, Entity constraint.Rope( Entity ent1, Entity ent2, number bone1, number bone2, Vector localPos1, Vector localPos2, number length, number addLength = 0, number forceLimit = 0, number width, string material = "", boolean rigid = false, table color = color_white )
Description
Creates a simple rope (length) based constraint.
Arguments
Returns
1 Entity constraint
The constraint entity (phys_lengthconstraint).
Will be a keyframe_rope
if you are roping to the same bone on the same entity. Will return false
if the constraint could not be created.
2 Entity rope
The rope entity. Will return
nil
if constraint
return value is a keyframe_rope or if the constraint could not be created.