{"name":"ammoOnPylon","title":"ammoOnPylon","type":"command","url":"https://community.bistudio.com/wiki/ammoOnPylon","revid":347947,"updated":"2023-11-07T05:27:04Z","groups":["Vehicle Loadouts"],"status":"ok","games":{"arma3":"1.70"},"since":"arma3 1.70","arma3_since":"1.70","description":"Returns ammo count on given pylon (or false on failure).","syntaxes":[{"syntax":"vehicle ammoOnPylon pylon","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"pylon","type":"String or Number","description":"pylon's name or index","type_expr":"String | Number"}],"returns":{"type":"Number or Boolean","type_expr":"Number | Boolean","description":"false on failure"},"form":"binary","left":{"text":"vehicle"},"right":{"text":"pylon"}}],"examples":[{"code":["private _ammoCount = (vehicle player) ammoOnPylon \"pylon1\";"]},{"code":["hint str (vehicle player ammoOnPylon \"pylonCenter\");"]}],"see_also":["Arma 3: Vehicle Loadouts","setAmmoOnPylon","getCompatiblePylonMagazines","getPylonMagazines","animatePylon","animateBay","setPylonsPriority","setPylonLoadout"],"notes":[{"user":"Commy2","date":"2017-08-18T14:21:00Z","text":"The pylon indices start at 1 and not at 0."}]}