---
name: "canSlingLoad"
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/canSlingLoad
revid: 352426
updated: 2024-02-09T15:26:09Z
---

# canSlingLoad

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

## Description

Returns [true](../commands/true.md) if [setSlingLoad](../commands/setSlingLoad.md) is possible.

## Syntax

### Syntax 1

```sqf
heli canSlingLoad cargo
```

**Parameters:**

- `heli`: [Object](../topics/Object.md) - a helicopter
- `cargo`: [Object](../topics/Object.md) - an entity

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if [setSlingLoad](../commands/setSlingLoad.md) is possible

### Syntax 2

*since arma3 2.12*

```sqf
typeOfHeli canSlingLoad typeOfCargo
```

**Parameters:**

- `typeOfHeli`: [String](../topics/String.md) - a config type of helicopter
- `typeOfCargo`: [String](../topics/String.md) - a config type of cargo (the object of type cargo has to exist in the mission)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if can be sling loaded *in principle*

## Examples

### Example 1

```sqf
_canSling = veh1 canSlingLoad veh2;
```

### Example 2

```sqf
hint str ((vehicle player) canSlingLoad veh1);
```

## See also

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

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