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 - "[[Vehicle Customization (VhC)" to "[[Arma 3: Vehicle Customisation") |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Vehicles | ||
| | |descr= Export vehicle settings | ||
| | |s1= [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]] | ||
| | |p1= vehicle: [[Object]] | ||
|p2= vehicleClass: [[String]] - use "" to skip createVehicle part and set components / textures only | |||
| | |r1= [[String]] - [[SQF Syntax|SQF]] code | ||
|x1= <sqf>[BIS_tank,""] call BIS_fnc_exportVehicle; | |||
|x1= < | |||
//Returns | //Returns | ||
Line 25: | Line 23: | ||
[""Hex"",1], | [""Hex"",1], | ||
[""showCamonetHull"",1,""showCamonetTurret"",1] | [""showCamonetHull"",1,""showCamonetTurret"",1] | ||
] | ] call BIS_fnc_initVehicle;"</sqf> | ||
|x2= < | |x2= <sqf>[BIS_tank] call BIS_fnc_exportVehicle; | ||
//Returns | //Returns | ||
Line 35: | Line 33: | ||
[""Hex"",1], | [""Hex"",1], | ||
[""showCamonetHull"",1,""showCamonetTurret"",1] | [""showCamonetHull"",1,""showCamonetTurret"",1] | ||
] | ] call BIS_fnc_initVehicle;" | ||
</ | </sqf> | ||
| [[BIS_fnc_initVehicle]] | |seealso= [[BIS_fnc_initVehicle]] [[Arma 3: Vehicle Customisation]] | ||
}} | }} | ||
Latest revision as of 22:57, 8 April 2024
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