BIS fnc exportVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "[[Vehicle Customization (VhC)" to "[[Arma 3: Vehicle Customisation")
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Vehicles


|gr1 = Vehicles |GROUP1=
|descr= Export vehicle settings
____________________________________________________________________________________________


| Export vehicle settings |Description=
|s1= [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]]
____________________________________________________________________________________________


| [vehicle,vehicleClass] call [[BIS_fnc_exportVehicle]] |Syntax=
|p1= vehicle: [[Object]]


|p2= vehicleClass: [[String]] - use "" to skip createVehicle part and set components / textures only


|p1= vehicle: [[Object]] |Parameter 1=
|r1= [[String]] - [[SQF Syntax|SQF]] code


|p2= vehicleClass: [[String]] - Use "" to skip createVehicle part and set components / textures only |Parameter 2=
|x1= <sqf>[BIS_tank,""] call BIS_fnc_exportVehicle;
 
| [[String]] - [[SQF]] code|Return value=
____________________________________________________________________________________________
 
|x1= <code>[BIS_tank,""] [[call]] [[BIS_fnc_exportVehicle]];


//Returns  
//Returns  
Line 29: Line 23:
   [""Hex"",1],  
   [""Hex"",1],  
   [""showCamonetHull"",1,""showCamonetTurret"",1]
   [""showCamonetHull"",1,""showCamonetTurret"",1]
] [[call]] [[BIS_fnc_initVehicle]];"</code>|Example 1=
] call BIS_fnc_initVehicle;"</sqf>


|x2= <code>[BIS_tank] [[call]] [[BIS_fnc_exportVehicle]];
|x2= <sqf>[BIS_tank] call BIS_fnc_exportVehicle;


//Returns  
//Returns  
Line 39: Line 33:
   [""Hex"",1],  
   [""Hex"",1],  
   [""showCamonetHull"",1,""showCamonetTurret"",1]
   [""showCamonetHull"",1,""showCamonetTurret"",1]
] [[call]] [[BIS_fnc_initVehicle]];"
] call BIS_fnc_initVehicle;"
</code>|Example 2=
</sqf>
 
____________________________________________________________________________________________


| [[BIS_fnc_initVehicle]], [[Vehicle Customization (VhC)]] |See also=
|seealso= [[BIS_fnc_initVehicle]] [[Arma 3: Vehicle Customisation]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Vehicles|{{uc:exportVehicle}}]]
[[Category:Functions|{{uc:exportVehicle}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:exportVehicle}}]]

Latest revision as of 22:57, 8 April 2024

Hover & click on the images for description

Description

Description:
Export vehicle settings
Execution:
call
Groups:
Vehicles

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

See also:
BIS_fnc_initVehicle Arma 3: Vehicle Customisation

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