Description
Cuts the given rope to the specified length. If some entity was attached to the end of the rope, it will be detached. The rope remains attached to its parent transport and if the length is set to 0 or even negative does not get destroyed. Use ropeDestroy to remove it completely.
Note
The rope could only be shortened. If the cut length is greater than current rope length, nothing happens
Syntax
ropeCut [rope, length]
Parameters:
rope: Object - rope object obtained from ropeCreatelength: Number - length of the rope in meters after the cut
Returns: Nothing
Examples
Example 1
ropeCut [ropes heli1 select 0, 5];
See also
ropes · canSlingLoad · enableRopeAttach · getSlingLoad · ropeAttachedObjects · ropeAttachTo · ropeDestroy · ropeLength · ropeUnwound · ropeAttachedTo · ropeCreate · ropeDetach · ropeAttachEnabled · ropeEndPosition · ropeUnwind · setSlingLoad · slingLoadAssistantShown