constraint.Winch
Entity, Entity, Entity constraint.Winch( Player player, Entity ent1, Entity ent2, number bone1, number bone2, Vector localPos1, Vector localPos2, number width, number fwdBind, number bwdBind, number fwdSpeed, number bwdSpeed, string material = "", boolean toggle = false, table color = color_white )
Description
Creates a winch constraint, a player controllable constraint.Elastic, allowing gradually increasing or decreasing the length.
Arguments
Returns
1 Entity
The created constraint. (phys_spring) Can return
nil
. Will return false
if the constraint could not be created.