BIS fnc exportVehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 23: | Line 23: | ||
[""Hex"",1], | [""Hex"",1], | ||
[""showCamonetHull"",1,""showCamonetTurret"",1] | [""showCamonetHull"",1,""showCamonetTurret"",1] | ||
] | ] call [[BIS_fnc_initVehicle]];"</code> | ||
|x2= <code>[BIS_tank] call BIS_fnc_exportVehicle; | |x2= <code>[BIS_tank] call BIS_fnc_exportVehicle; | ||
Line 33: | Line 33: | ||
[""Hex"",1], | [""Hex"",1], | ||
[""showCamonetHull"",1,""showCamonetTurret"",1] | [""showCamonetHull"",1,""showCamonetTurret"",1] | ||
] | ] call [[BIS_fnc_initVehicle]];" | ||
</code> | </code> | ||
|seealso= [[BIS_fnc_initVehicle]] [[Vehicle Customization (VhC)]] | |seealso= [[BIS_fnc_initVehicle]] [[Vehicle Customization (VhC)]] | ||
}} | }} |
Revision as of 21:37, 12 July 2022
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