{"name":"BIS_fnc_exportVehicle","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Export vehicle settings","syntaxes":[{"syntax":"[vehicle,vehicleClass] call BIS_fnc_exportVehicle","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"vehicleClass","type":"String","optional":false,"default":null,"description":"use \"\" to skip createVehicle part and set components / textures only","types":["String"],"since":null,"text":"vehicleClass: String - use \"\" to skip createVehicle part and set components / textures only"}],"returns":{"type":"String","types":["String"],"description":"SQF code","text":"String - 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;\""]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_initVehicle","Arma 3: Vehicle Customisation"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Vehicles","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}