ammoOnPylon

From Bohemia Interactive Community
Revision as of 06:27, 7 November 2023 by BrettMayson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns ammo count on given pylon (or false on failure).
Groups:
Vehicle Loadouts

Syntax

Syntax:
vehicle ammoOnPylon pylon
Parameters:
vehicle: Object
pylon: String or Number - pylon's name or index
Return Value:
Number or Boolean - false on failure

Examples

Example 1:
private _ammoCount = (vehicle player) ammoOnPylon "pylon1";
Example 2:
hint str (vehicle player ammoOnPylon "pylonCenter");

Additional Information

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

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Commy2 - c
Posted on Aug 18, 2017 - 14:21 (UTC)
The pylon indices start at 1 and not at 0.