Arma 3 Scripting

Command in Unit Inventory

someAmmo

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

Description

Check if unit has some ammo.

Syntax

someAmmo unitName

Parameters:

Returns: Boolean

Examples

Example 1

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

Example 2

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

See also

ammo · magazines