{"name":"getVehicleCargo","operator":null,"title":"getVehicleCargo","type":"command","url":"https://community.bistudio.com/wiki/getVehicleCargo","revid":330010,"updated":"2022-08-14T12:55:01Z","groups":["Vehicle in Vehicle Transport"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.62"}],"since":{"game":"arma3","name":"Arma 3","version":"1.62"},"arma3_since":"1.62","branch":null,"locality":{"argument":"global","effect":"global","server_exec":false},"exec":null,"description":"Get a list of vehicles loaded as cargo inside this vehicle. The returned array is in the order the cargo vehicles were added to containing vehicle.","syntaxes":[{"syntax":"getVehicleCargo storingVehicle","since":null,"effect":null,"exec":null,"params":[{"name":"storingVehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"storingVehicle: Object"}],"returns":{"type":"Array","types":["Array"],"description":"vehicles loaded in storingVehicle, in order of their loading","text":"Array - vehicles loaded in storingVehicle, in order of their loading"},"form":"unary","operator":null,"left":null,"right":{"text":"storingVehicle","types":["Object"]}}],"examples":[{"text":"```sqf\n_vehicleCargo = getVehicleCargo blackfish; // returns [] if empty\n```","code":["_vehicleCargo = getVehicleCargo blackfish; // returns [] if empty"]},{"text":"```sqf\n_vehicleCargo = getVehicleCargo blackfish; // returns [quad_3, quad_1, quad_2] as they were loaded in this order\n```","code":["_vehicleCargo = getVehicleCargo blackfish; // returns [quad_3, quad_1, quad_2] as they were loaded in this order"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Vehicle in Vehicle Transport","canVehicleCargo","setVehicleCargo","enableVehicleCargo","isVehicleCargo","vehicleCargoEnabled"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Vehicle in Vehicle Transport","Introduced with Arma 3 version 1.62","Scripting Commands","Scripting Commands: Global Effect"]}