{"name":"getArtilleryAmmo","title":"getArtilleryAmmo","type":"command","url":"https://community.bistudio.com/wiki/getArtilleryAmmo","revid":369189,"updated":"2024-09-03T10:34:46Z","groups":["Artillery"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"global"},"description":"Get list of all available magazines of artillery units on the list. Command returns only unique magazine types and doesn't contain any information about which unit has which magazine.","syntaxes":[{"syntax":"getArtilleryAmmo artilleryList","params":[{"name":"artilleryList","type":"Array of Objects","type_expr":"Array<Object>"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>"},"form":"unary","right":{"text":"artilleryList"}}],"examples":[{"text":"```sqf\nif (\"8Rnd_82mm_Mo_Flare_white\" in getArtilleryAmmo [\n    _mortar1,\n    _mortar2,\n    _mortar3,\n    _mortar4\n]) then\n{\n    hint \"Sir, we have white flares, Sir!\";\n};\n```","code":["if (\"8Rnd_82mm_Mo_Flare_white\" in getArtilleryAmmo [\n\t_mortar1,\n\t_mortar2,\n\t_mortar3, \n\t_mortar4\n]) then\n{\n\thint \"Sir, we have white flares, Sir!\";\n};"]}],"see_also":["getArtilleryETA","commandArtilleryFire","doArtilleryFire","enableEngineArtillery","getArtilleryComputerSettings","shownArtilleryComputer","inRangeOfArtillery"]}