BIS fnc exportVehicle: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported: BIS Functions update 7/7) |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
____________________________________________________________________________________________ | |||
| arma3 |Game name= | |||
|1.00|Game version= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Export vehicle settings |Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]] |Syntax= | ||
|p1= vehicle: [[Object]] |Parameter 1= | |||
|p2= vehicleClass: [[String]] - Use "" to skip createVehicle part and set components / textures only |Parameter 2= | |||
| [[String]] - [[SQF]] code|Return value= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| < | |x1= <code>[BIS_tank,""] [[call]] [[BIS_fnc_exportVehicle]]; | ||
| |= | //Returns | ||
"[ | |||
_this, | |||
[""Hex"",1], | |||
[""showCamonetHull"",1,""showCamonetTurret"",1] | |||
] [[call]] [[BIS_fnc_initVehicle]];"</code>|Example 1= | |||
|x2= <code>[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]];" | |||
</code>|Example 2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[BIS_fnc_initVehicle]], [[Vehicle Customization (VhC)]] |See also= | ||
}} | }} | ||
Revision as of 14:03, 19 June 2018
Description
- Description:
- Export vehicle settings
- Execution:
- call
- Groups:
- Uncategorised
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