Arma 3 Scripting

Command in Unit Inventory

isSwitchingWeapon

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

Description

Returns wether or not the unit is in the process of switching weapon.

Syntax

isSwitchingWeapon unit

Parameters:

Returns: Boolean - true if the unit is switching weapon.

Examples

Example 1

isSwitchingWeapon player;

See also

primaryWeaponMagazine · primaryWeaponItems · addPrimaryWeaponItem · removePrimaryWeaponItem · removeAllPrimaryWeaponItems · secondaryWeapon · handgunWeapon · currentWeapon · weapons · primaryWeapon · setUnitLoadout

Community notes

OverlordZorn

as of 2.20, this does not return true when the unit is prone