{"name":"ammoOnPylon","operator":null,"title":"ammoOnPylon","type":"command","url":"https://community.bistudio.com/wiki/ammoOnPylon","revid":347947,"updated":"2023-11-07T05:27:04Z","groups":["Vehicle Loadouts"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.70"}],"since":{"game":"arma3","name":"Arma 3","version":"1.70"},"arma3_since":"1.70","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns ammo count on given pylon (or false on failure).","syntaxes":[{"syntax":"vehicle ammoOnPylon pylon","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"pylon","type":"String or Number","optional":false,"default":null,"description":"pylon's name or index","types":["String","Number"],"since":null,"text":"pylon: String or Number - pylon's name or index"}],"returns":{"type":"Number or Boolean","types":["Number","Boolean"],"description":"false on failure","text":"Number or Boolean - false on failure"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"pylon","types":["String","Number"]}}],"examples":[{"text":"```sqf\nprivate _ammoCount = (vehicle player) ammoOnPylon \"pylon1\";\n```","code":["private _ammoCount = (vehicle player) ammoOnPylon \"pylon1\";"]},{"text":"```sqf\nhint str (vehicle player ammoOnPylon \"pylonCenter\");\n```","code":["hint str (vehicle player ammoOnPylon \"pylonCenter\");"]}],"multiplayer":null,"problems":null,"aliases":[],"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."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Vehicle Loadouts","Introduced with Arma 3 version 1.70","Scripting Commands"]}