Arma 3 Scripting

isSwitchingWeapon

  • Global argument
  • Arma 3 v2.20

Command · Markdown · JSON · 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