BIS fnc exportVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
Line 9: Line 9:
| Export vehicle settings
| Export vehicle settings


| [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]]
|s1=[vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]]


|p1= vehicle: [[Object]]
|p1= vehicle: [[Object]]

Revision as of 16:58, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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