{"name":"gearIDCAmmoCount","operator":null,"title":"gearIDCAmmoCount","type":"command","url":"https://community.bistudio.com/wiki/gearIDCAmmoCount","revid":363874,"updated":"2024-04-23T21:04:42Z","groups":["Unit Inventory","GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.62"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.62"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns ammo count of assigned magazine.","syntaxes":[{"syntax":"gearIDCAmmoCount idc","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":"idc of control type CT_ITEMSLOT 103","types":["Number"],"since":null,"text":"idc: Number - idc of control type CT_ITEMSLOT 103"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"unary","operator":null,"left":null,"right":{"text":"idc","types":["Number"]}}],"examples":[{"text":"```sqf\n_ammoCount = gearIDCAmmoCount _control;\n```","code":["_ammoCount = gearIDCAmmoCount _control;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["gearSlotData","gearSlotAmmoCount"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control","Command Group: Unit Inventory","Introduced with Arma 2: Operation Arrowhead version 1.62","Scripting Commands","Take On Helicopters: Scripting Commands"]}