BIS fnc exportVehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Vehicles | |gr1 = Vehicles | ||
| Export vehicle settings | | Export vehicle settings | ||
| [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]] | | [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]] | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= vehicleClass: [[String]] - Use "" to skip createVehicle part and set components / textures only | |p2= vehicleClass: [[String]] - Use "" to skip createVehicle part and set components / textures only | ||
| [[String]] - [[SQF]] code | | [[String]] - [[SQF]] code | ||
|x1= <code>[BIS_tank,""] [[call]] [[BIS_fnc_exportVehicle]]; | |x1= <code>[BIS_tank,""] [[call]] [[BIS_fnc_exportVehicle]]; | ||
Line 25: | Line 25: | ||
[""Hex"",1], | [""Hex"",1], | ||
[""showCamonetHull"",1,""showCamonetTurret"",1] | [""showCamonetHull"",1,""showCamonetTurret"",1] | ||
] [[call]] [[BIS_fnc_initVehicle]];"</code> | ] [[call]] [[BIS_fnc_initVehicle]];"</code> | ||
|x2= <code>[BIS_tank] [[call]] [[BIS_fnc_exportVehicle]]; | |x2= <code>[BIS_tank] [[call]] [[BIS_fnc_exportVehicle]]; | ||
Line 36: | Line 36: | ||
[""showCamonetHull"",1,""showCamonetTurret"",1] | [""showCamonetHull"",1,""showCamonetTurret"",1] | ||
] [[call]] [[BIS_fnc_initVehicle]];" | ] [[call]] [[BIS_fnc_initVehicle]];" | ||
</code> | </code> | ||
| [[BIS_fnc_initVehicle]], [[Vehicle Customization (VhC)]] | | [[BIS_fnc_initVehicle]], [[Vehicle Customization (VhC)]] | ||
}} | }} | ||
Revision as of 23:04, 17 January 2021
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