Arma 3 Scripting

ammoOnPylon

  • Arma 3 v1.70

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