---
name: "ropeSegments"
type: command
status: ok
groups: ["Ropes and Sling Loading"]
arma3_since: "2.04"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ropeSegments
revid: 364777
updated: 2024-06-10T12:28:27Z
---

# ropeSegments

*Command · Ropes and Sling Loading · Arma 3 v2.04*

## Description

Returns provided rope's segments.

Arma 3 v2.12 use [objectParent](../commands/objectParent.md) to return the rope parent from a rope segment.

## Syntax

```sqf
ropeSegments rope
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s - the rope's segments

## Examples

### Example 1

```sqf
private _segments = ropeSegments _myRope;
```

## See also

[ropeCreate](../commands/ropeCreate.md) · [ropeLength](../commands/ropeLength.md) · [ropeCut](../commands/ropeCut.md) · [ropeEndPosition](../commands/ropeEndPosition.md)

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