---
name: "setSlingLoad"
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/setSlingLoad
revid: 379385
updated: 2026-10-30T23:59:28Z
---

# setSlingLoad

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

## Description

Creates a sling loading from a helicopter to an entity if possible. To unload cargo, pass [objNull](../commands/objNull.md) as second param.

> [!NOTE]
> FROM object has to be a helicoper, alive with [rope attachment](../commands/enableRopeAttach.md) enabled, TO object has to be an entity, alive with [rope attachment](../commands/enableRopeAttach.md) enabled.

## Syntax

```sqf
heli setSlingLoad cargo
```

**Parameters:**

- `heli`: [Object](../topics/Object.md) - the helicopter slinging the load
- `cargo`: [Object](../topics/Object.md) - the cargo load entity

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) on success

## Examples

### Example 1

```sqf
_success = heli1 setSlingLoad veh1;
```

### Example 2

To unload cargo:

```sqf
_success = heli setSlingLoad objNull;
```

## 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) · [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) · [slingLoadAssistantShown](../commands/slingLoadAssistantShown.md)

## Community notes

**Tajin** — 2014-11-08

"... if possible "\
FYI, that only means that 'vehicle' has to be able to lift 'cargo'. The position/distance does not matter, 'cargo' is automatically moved to a position that is close enough but doesn't doesn't collide with 'vehicle'. (can also be used if 'vehicle' is not flying, in which case 'cargo' will be placed and attached on the ground next to it).

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