---
name: "ropeAttachedTo"
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/ropeAttachedTo
revid: 350037
updated: 2023-11-20T22:12:04Z
---

# ropeAttachedTo

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

## Description

Returns the owner of the first rope - the transport to which other entities are attached with [ropes](../commands/ropes.md). This command is the opposite of [ropeAttachedObjects](../commands/ropeAttachedObjects.md). To return all owners see [ropesAttachedTo](../commands/ropesAttachedTo.md).

## Syntax

```sqf
ropeAttachedTo cargo
```

**Parameters:**

- `cargo`: [Object](../topics/Object.md) - entity attached to the end of the first rope

**Returns:** [Object](../topics/Object.md) - a transport from which the first rope originates, the rope owner

## Examples

### Example 1

```sqf
_heli = ropeAttachedTo veh1;
```

## See also

[ropesAttachedTo](../commands/ropesAttachedTo.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 — ropeAttachedTo](https://community.bistudio.com/wiki/ropeAttachedTo) (revision 350037).</sub>
