---
name: "gearIDCAmmoCount"
type: command
status: ok
groups: ["Unit Inventory", "GUI Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/gearIDCAmmoCount
revid: 363874
updated: 2024-04-23T21:04:42Z
---

# gearIDCAmmoCount

*Command · Unit Inventory, GUI Control · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.62*

## Description

Returns ammo count of assigned magazine.

## Syntax

```sqf
gearIDCAmmoCount idc
```

**Parameters:**

- `idc`: [Number](../topics/Number.md) - idc of control type CT_ITEMSLOT 103

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
_ammoCount = gearIDCAmmoCount _control;
```

## See also

[gearSlotData](../commands/gearSlotData.md) · [gearSlotAmmoCount](../commands/gearSlotAmmoCount.md)

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