{"name":"BIS_fnc_exportVehicle","title":"BIS fnc exportVehicle","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_exportVehicle","revid":363634,"updated":"2024-04-08T21:57:47Z","groups":["Vehicles"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Export vehicle settings","syntaxes":[{"syntax":"[vehicle,vehicleClass] call BIS_fnc_exportVehicle","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"vehicleClass","type":"String","description":"use \"\" to skip createVehicle part and set components / textures only","type_expr":"String"}],"returns":{"type":"String","type_expr":"String","description":"SQF code"}}],"examples":[{"text":"```sqf\n[BIS_tank,\"\"] call BIS_fnc_exportVehicle;\n\n//Returns\n\"[\n  _this,\n  [\"\"Hex\"\",1],\n  [\"\"showCamonetHull\"\",1,\"\"showCamonetTurret\"\",1]\n] call BIS_fnc_initVehicle;\"\n```","code":["[BIS_tank,\"\"] call BIS_fnc_exportVehicle;\n\n//Returns \n\"[\n  _this,\n  [\"\"Hex\"\",1], \n  [\"\"showCamonetHull\"\",1,\"\"showCamonetTurret\"\",1]\n] call BIS_fnc_initVehicle;\""]},{"text":"```sqf\n[BIS_tank] call BIS_fnc_exportVehicle;\n\n//Returns\n\"_veh = createVehicle [\"\"O_MBT_04_cannon_F\"\",position player,[],0,\"\"NONE\"\"];\n[\n  _veh,\n  [\"\"Hex\"\",1],\n  [\"\"showCamonetHull\"\",1,\"\"showCamonetTurret\"\",1]\n] call BIS_fnc_initVehicle;\"\n```","code":["[BIS_tank] call BIS_fnc_exportVehicle;\n\n//Returns \n\"_veh = createVehicle [\"\"O_MBT_04_cannon_F\"\",position player,[],0,\"\"NONE\"\"];\n[\n  _veh,\n  [\"\"Hex\"\",1], \n  [\"\"showCamonetHull\"\",1,\"\"showCamonetTurret\"\",1]\n] call BIS_fnc_initVehicle;\""]}],"see_also":["BIS_fnc_initVehicle","Arma 3: Vehicle Customisation"]}