---
name: "ropeAttachTo"
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/ropeAttachTo
revid: 329674
updated: 2022-08-01T01:24:20Z
---

# ropeAttachTo

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

## Description

Attaches entity to the rope end with optional offset. For detach operation use [ropeDetach](../commands/ropeDetach.md).

## Syntax

### Syntax 1

```sqf
[entity, toPoint, ropeEndDownVector] ropeAttachTo rope
```

**Parameters:**

- `entity`: [Object](../topics/Object.md) - entity to be attached to the end of rope
- `toPoint`: [String](../topics/String.md) or [Array](../topics/Array.md) - (Optional) position for the rope end, either a memory point [String](../topics/String.md) or relative offset [Array](../topics/Array.md)
- `ropeEndDownVector`: [String](../topics/String.md) or [Array](../topics/Array.md) - (Optional, default [0,0,-1]) either a memory point [String](../topics/String.md) or relative vector [Array](../topics/Array.md). If [String](../topics/String.md) is given, then `ropeEndDownVector` is calculated from `toPoint` towards `ropeEndDownVector` memory point
- `rope`: [Object](../topics/Object.md) - the rope to which entity will be attached to

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

### Syntax 2

*since arma3 2.10*

```sqf
entity ropeAttachTo rope
```

**Parameters:**

- `entity`: [Object](../topics/Object.md) - entity to be attached to the end of rope
- `rope`: [Object](../topics/Object.md) - the rope to which entity will be attached to

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

## Examples

### Example 1

```sqf
[veh1, [0,0,0], [0,0,-1]] ropeAttachTo (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) · [ropeDestroy](../commands/ropeDestroy.md) · [ropeLength](../commands/ropeLength.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)

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