{"name":"someAmmo","operator":null,"title":"someAmmo","type":"command","url":"https://community.bistudio.com/wiki/someAmmo","revid":338255,"updated":"2023-02-24T18:01:51Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Check if unit has some ammo.","syntaxes":[{"syntax":"someAmmo unitName","since":null,"effect":null,"exec":null,"params":[{"name":"unitName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unitName: Object"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"unary","operator":null,"left":null,"right":{"text":"unitName","types":["Object"]}}],"examples":[{"text":"```sqs\n? not (someAmmo _loon1) : hint \"Loon1 is out of ammo!\"\n```","code":["? not (someAmmo _loon1) : hint \"Loon1 is out of ammo!\""]},{"text":"```sqf\nif (not someAmmo _loon1) then { hint \"Loon1 is out of ammo!\" };\n```","code":["if (not someAmmo _loon1) then { hint \"Loon1 is out of ammo!\" };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ammo","magazines"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}