Arma 3 Scripting

someAmmo

  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

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