Arma 3 Scripting

Command in Ropes and Sling Loading

ropeLength

Also available as Markdown and JSON, or read the original wiki page.

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:

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

Community notes

Sa-Matra

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.