{"name":"getAmmoCargo","operator":null,"title":"getAmmoCargo","type":"command","url":"https://community.bistudio.com/wiki/getAmmoCargo","revid":370851,"updated":"2025-02-18T00:20:05Z","groups":["Vehicle Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.56"}],"since":{"game":"arma3","name":"Arma 3","version":"0.56"},"arma3_since":"0.56","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns the amount (1 is full) of ammo resources in the cargo space of a rearm vehicle.","syntaxes":[{"syntax":"getAmmoCargo vehicle","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"}],"returns":{"type":"Number","types":["Number"],"description":"ammo cargo value between 0 (empty, destroyed or null Object) and 1 (full), -1 if ammo cargo is not supported before Arma 3 v1.96 -inf was be returned if vehicle did not support ammo cargo before Arma 3 v1.94 Nothing was be returned if vehicle was not alive","text":"Number - ammo cargo value between 0 (empty, destroyed or null Object) and 1 (full), -1 if ammo cargo is not supported\n\nbefore Arma 3 v1.96 -inf was be returned if *vehicle* did not support ammo cargo\n\nbefore Arma 3 v1.94 Nothing was be returned if *vehicle* was not alive"},"form":"unary","operator":null,"left":null,"right":{"text":"vehicle","types":["Object"]}}],"examples":[{"text":"```sqf\nvalue = getAmmoCargo myVehicleName;\n```","code":["value = getAmmoCargo myVehicleName;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setAmmoCargo","getFuelCargo","getRepairCargo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Vehicle Inventory","Introduced with Arma 3 version 0.56","Scripting Commands"]}