---
name: "canDeployWeapon"
type: command
status: ok
groups: ["Weapons"]
arma3_since: "2.06"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/canDeployWeapon
revid: 310452
updated: 2022-05-05T18:08:10Z
---

# canDeployWeapon

*Command · Weapons · Arma 3 v2.06*

Locality: arguments **local**

## Description

Returns [true](../commands/true.md) if a unit's weapon can be deployed.

## Syntax

```sqf
canDeployWeapon unit
```

**Parameters:**

- `unit` : [Object](../topics/Object.md)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if unit's weapon can be deployed

## Examples

### Example 1

```sqf
if (canDeployWeapon player) then { hint "I could rest my weapon here..." };
```

## See also

[isWeaponDeployed](../commands/isWeaponDeployed.md) · [isWeaponRested](../commands/isWeaponRested.md)

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