---
name: "ropesAttachedTo"
type: command
status: ok
groups: ["Ropes and Sling Loading"]
arma3_since: "2.10"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ropesAttachedTo
revid: 352477
updated: 2024-02-11T23:39:44Z
---

# ropesAttachedTo

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

## Description

Returns the owners of all ropes attached to the cargo - the transports to which other entities are attached with [ropes](../commands/ropes.md).

## Syntax

```sqf
ropesAttachedTo cargo
```

**Parameters:**

- `cargo`: [Object](../topics/Object.md) - entity attached to the ends of the ropes

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s which are transports from which the ropes originate, the ropes owners

## Examples

### Example 1

```sqf
r1 = ropeCreate [car1, [0,0,0], car3, [0,0,0], 10];
r2 = ropeCreate [car2, [0,0,0], car3, [0,0,0], 10];
ropesAttachedTo car3; // [car1,car2]
```

## See also

[ropeAttachedTo](../commands/ropeAttachedTo.md) · [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) · [ropeLength](../commands/ropeLength.md) · [ropeUnwound](../commands/ropeUnwound.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)

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