BIS fnc saveVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "[[Arma 3: Vehicle Customization" to "[[Arma 3: Vehicle Customisation")
 
(33 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= Save vehicle's params (textures, animations, crew).
____________________________________________________________________________________________


| Save vehicle's params (textures, animations, crew). |Description=
|s1= [object,target,params,delete] call [[BIS_fnc_saveVehicle]]
____________________________________________________________________________________________


| [object,target,params,delete] call [[BIS_fnc_saveVehicle]] |Syntax=
|p1= object: [[Object]] - vehicle
 
 
|p1= object: [[Object]] - Vehicle |Parameter 1=
|p2= target: [[Array]] - in format:
|p2= target: [[Array]] - in format:
*0: [[Namespace]], [[Group]] or [[Object]] - Where the save will be saved
*0: [[Namespace]], [[Group]] or [[Object]] - Where the save will be saved
*1: [[String]] - Name of the save |Parameter 2=
*1: [[String]] - Name of the save
|p3= params: [[Array]] - (Optional, default []) Additional parameters to be saved |Parameter 3=
|p3= params: [[Array]] - (Optional, default <sqf inline>[]</sqf>) additional parameters to be saved
|p4= delete: [[Boolean]] - (Optional, default [[false]]) [[True]] to delete the save |Parameter 4=
|p4= delete: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete the save


| [[Array]] - Saved value |Return value=
|r1= [[Array]] - saved value
____________________________________________________________________________________________


|x1= <code>[BIS_tank, [<nowiki/>[[missionNamespace]], "BIS_someTankSave"], ["SomeRandomParam"], [[false]] ] [[call]] [[BIS_fnc_saveVehicle]];</code> |Example 1=
|x1= <sqf>[BIS_tank, [missionNamespace, "BIS_someTankSave"], ["SomeRandomParam"], false] call BIS_fnc_saveVehicle;</sqf>
____________________________________________________________________________________________


| [[BIS_fnc_loadVehicle]] |See also=
|seealso= [[BIS_fnc_initVehicle]] [[BIS_fnc_loadVehicle]] [[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:saveVehicle}}]]
[[Category:Functions|{{uc:saveVehicle}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:saveVehicle}}]]

Latest revision as of 22:57, 8 April 2024

Hover & click on the images for description

Description

Description:
Save vehicle's params (textures, animations, crew).
Execution:
call
Groups:
Vehicles

Syntax

Syntax:
[object,target,params,delete] call BIS_fnc_saveVehicle
Parameters:
object: Object - vehicle
target: Array - in format:
params: Array - (Optional, default []) additional parameters to be saved
delete: Boolean - (Optional, default false) true to delete the save
Return Value:
Array - saved value

Examples

Example 1:
[BIS_tank, [missionNamespace, "BIS_someTankSave"], ["SomeRandomParam"], false] call BIS_fnc_saveVehicle;

Additional Information

See also:
BIS_fnc_initVehicle BIS_fnc_loadVehicle 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