Arma 3 Scripting

Function in Vehicles

BIS_fnc_exportVehicle

Also available as Markdown and JSON, or read the original wiki page.

Description

Export vehicle settings

Syntax

[vehicle,vehicleClass] call BIS_fnc_exportVehicle

Parameters:

Returns: String - SQF code

Examples

Example 1

[BIS_tank,""] call BIS_fnc_exportVehicle;

//Returns 
"[
  _this,
  [""Hex"",1], 
  [""showCamonetHull"",1,""showCamonetTurret"",1]
] call BIS_fnc_initVehicle;"

Example 2

[BIS_tank] call BIS_fnc_exportVehicle;

//Returns 
"_veh = createVehicle [""O_MBT_04_cannon_F"",position player,[],0,""NONE""];
[
  _veh,
  [""Hex"",1], 
  [""showCamonetHull"",1,""showCamonetTurret"",1]
] call BIS_fnc_initVehicle;"

See also

BIS_fnc_initVehicle · Arma 3: Vehicle Customisation