Arma 3 Scripting

Command in Vehicle Loadouts

ammoOnPylon

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

Description

Returns ammo count on given pylon (or false on failure).

Syntax

vehicle ammoOnPylon pylon

Parameters:

Returns: Number or Boolean - false on failure

Examples

Example 1

private _ammoCount = (vehicle player) ammoOnPylon "pylon1";

Example 2

hint str (vehicle player ammoOnPylon "pylonCenter");

See also

Arma 3: Vehicle Loadouts · setAmmoOnPylon · getCompatiblePylonMagazines · getPylonMagazines · animatePylon · animateBay · setPylonsPriority · setPylonLoadout

Community notes

Commy2

The pylon indices start at 1 and not at 0.