Returns 0 for rope segments. To get length of individual segment, do vectorMagnitude vectorUpVisual _segment * 0.3. 0.3 is model height of RopeSegment, you can calculate it using boundingBox for other rope types.
Description
Return rope length in meters (set by ropeCreate, ropeCut, ropeUnwind).
Note
Returned rope length will remain the same, even if the rope is stretched.
Syntax
ropeLength rope
Parameters:
rope: Object
Returns: Number
Examples
Example 1
_length = ropeLength (ropes heli1 select 0);
See also
ropes · canSlingLoad · enableRopeAttach · getSlingLoad · ropeAttachedObjects · ropeAttachTo · ropeDestroy · ropeUnwound · ropeAttachedTo · ropeCreate · ropeDetach · ropeAttachEnabled · ropeCut · ropeEndPosition · ropeUnwind · setSlingLoad · slingLoadAssistantShown