BIS fnc exportVehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |s1=[" to " |s1= [") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *U([a-z ])" to "$1 - u$2") |
||
Line 12: | Line 12: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= vehicleClass: [[String]] - | |p2= vehicleClass: [[String]] - use "" to skip createVehicle part and set components / textures only | ||
|r1= [[String]] - [[SQF Syntax|SQF]] code | |r1= [[String]] - [[SQF Syntax|SQF]] code |
Revision as of 15:52, 8 November 2023
Description
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
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