---
name: "handgunMagazine"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.70"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/handgunMagazine
revid: 377157
updated: 2026-01-01T10:38:51Z
---

# handgunMagazine

*Command · Unit Inventory · Arma 3 v0.70*

Locality: arguments **global**

## Description

Collects all loaded [magazines](../commands/magazines.md) from all [handgunWeapon](../commands/handgunWeapon.md) muzzles and returns them in [Array](../topics/Array.md), otherwise it returns []. This command is used for infantry weapons only.

## Syntax

```sqf
handgunMagazine unit
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s

## Examples

### Example 1

```sqf
hint str handgunMagazine player; // ["16Rnd_9x21_Mag"]
```

### Example 2

```sqf
_array = handgunMagazine player;
if (count _array > 0) then {
    hint ("Handgun is loaded with " + (_array select 0) + "!");
} else {
    if (handgunWeapon player != "") then {
        hint "Handgun is not loaded!";
    } else {
        hint "Player doesn't have a handgun!";
    };
};
```

## See also

[handgunWeapon](../commands/handgunWeapon.md) · [handgunItems](../commands/handgunItems.md) · [addHandgunItem](../commands/addHandgunItem.md) · [removeHandgunItem](../commands/removeHandgunItem.md) · [removeAllHandgunItems](../commands/removeAllHandgunItems.md) · [primaryWeaponMagazine](../commands/primaryWeaponMagazine.md) · [secondaryWeaponMagazine](../commands/secondaryWeaponMagazine.md) · [binocularMagazine](../commands/binocularMagazine.md)

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