BIS fnc exportVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Vehicles(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1 = Vehicles |GROUP1=
|gr1 = Vehicles |GROUP1=
____________________________________________________________________________________________


| Export vehicle settings |Description=
| Export vehicle settings |Description=
____________________________________________________________________________________________


| [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]] |Syntax=
| [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]] |Syntax=
Line 20: Line 17:


| [[String]] - [[SQF]] code|Return value=
| [[String]] - [[SQF]] code|Return value=
____________________________________________________________________________________________


|x1= <code>[BIS_tank,""] [[call]] [[BIS_fnc_exportVehicle]];
|x1= <code>[BIS_tank,""] [[call]] [[BIS_fnc_exportVehicle]];
Line 42: Line 38:
</code>|Example 2=
</code>|Example 2=


____________________________________________________________________________________________


| [[BIS_fnc_initVehicle]], [[Vehicle Customization (VhC)]] |See also=
| [[BIS_fnc_initVehicle]], [[Vehicle Customization (VhC)]] |See also=

Revision as of 23:11, 16 January 2021

Hover & click on the images for description

Description

Description:
Export vehicle settings
Execution:
call
Groups:
Vehicles

Syntax

Syntax:
[vehicle,vehicleClass] call BIS_fnc_exportVehicle
Parameters:
vehicle: Object
vehicleClass: String - Use "" to skip createVehicle part and set components / textures only
Return Value:
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;"

Additional Information

See also:
BIS_fnc_initVehicleVehicle Customization (VhC)

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section