---
name: "someAmmo"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/someAmmo
revid: 338255
updated: 2023-02-24T18:01:51Z
---

# someAmmo

*Command · Unit Inventory · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

## Description

Check if unit has some ammo.

## Syntax

```sqf
someAmmo unitName
```

**Parameters:**

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

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

## Examples

### Example 1

```sqs
? not (someAmmo _loon1) : hint "Loon1 is out of ammo!"
```

### Example 2

```sqf
if (not someAmmo _loon1) then { hint "Loon1 is out of ammo!" };
```

## See also

[ammo](../commands/ammo.md) · [magazines](../commands/magazines.md)

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