---
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: 353299
updated: 2024-03-15T17:11:43Z
---

# 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)

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