Arma 3 Scripting

Command in Weapons

canDeployWeapon

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns true if a unit's weapon can be deployed.

Syntax

canDeployWeapon unit

Parameters:

Returns: Boolean - true if unit's weapon can be deployed

Examples

Example 1

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

See also

isWeaponDeployed · isWeaponRested