---
name: "ropeLength"
type: command
status: ok
groups: ["Ropes and Sling Loading"]
arma3_since: "1.34"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ropeLength
revid: 364981
updated: 2024-07-04T19:58:04Z
---

# ropeLength

*Command · Ropes and Sling Loading · Arma 3 v1.34*

## Description

Return rope length in meters (set by [ropeCreate](../commands/ropeCreate.md), [ropeCut](../commands/ropeCut.md), [ropeUnwind](../commands/ropeUnwind.md)).

> [!NOTE]
> Returned rope length will remain the same, even if the rope is stretched.

## Syntax

```sqf
ropeLength rope
```

**Parameters:**

- `rope`: [Object](../topics/Object.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
_length = ropeLength (ropes heli1 select 0);
```

## See also

[ropes](../commands/ropes.md) · [canSlingLoad](../commands/canSlingLoad.md) · [enableRopeAttach](../commands/enableRopeAttach.md) · [getSlingLoad](../commands/getSlingLoad.md) · [ropeAttachedObjects](../commands/ropeAttachedObjects.md) · [ropeAttachTo](../commands/ropeAttachTo.md) · [ropeDestroy](../commands/ropeDestroy.md) · [ropeUnwound](../commands/ropeUnwound.md) · [ropeAttachedTo](../commands/ropeAttachedTo.md) · [ropeCreate](../commands/ropeCreate.md) · [ropeDetach](../commands/ropeDetach.md) · [ropeAttachEnabled](../commands/ropeAttachEnabled.md) · [ropeCut](../commands/ropeCut.md) · [ropeEndPosition](../commands/ropeEndPosition.md) · [ropeUnwind](../commands/ropeUnwind.md) · [setSlingLoad](../commands/setSlingLoad.md) · [slingLoadAssistantShown](../commands/slingLoadAssistantShown.md)

## Community notes

**Sa-Matra** — 2024-06-08

Returns 0 for [rope segments](../commands/ropeSegments.md). 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](../commands/boundingBox.md) for other rope types.

<sub>Source: [BI Community Wiki — ropeLength](https://community.bistudio.com/wiki/ropeLength) (revision 364981).</sub>
