{"name":"getVehicleCargo","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","games":{"arma3":"1.62"},"since":"arma3 1.62","arma3_since":"1.62","locality":{"argument":"global","effect":"global"},"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","params":[{"name":"storingVehicle","type":"Object","type_expr":"Object"}],"returns":{"type":"Array","type_expr":"Array","description":"vehicles loaded in storingVehicle, in order of their loading"},"form":"unary","right":{"text":"storingVehicle"}}],"examples":[{"code":["_vehicleCargo = getVehicleCargo blackfish; // returns [] if empty"]},{"code":["_vehicleCargo = getVehicleCargo blackfish; // returns [quad_3, quad_1, quad_2] as they were loaded in this order"]}],"see_also":["Arma 3: Vehicle in Vehicle Transport","canVehicleCargo","setVehicleCargo","enableVehicleCargo","isVehicleCargo","vehicleCargoEnabled"]}