BIS fnc saveVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 7/7)
m (pf)
Line 1: Line 1:
 
{{Function|Comments=
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Save vehicle's params (textures, animations, crew). |Description=
Author: Karel Moricky
____________________________________________________________________________________________


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


Parameter(s):
0: OBJECT - saved vehicle
1: ARRAY in format
0: NAMESPACE or GROUP or OBJECT - target in which namespace the loadout will be saved
1: STRING - name
2 (Optional): ARRAY - custom params to be saved along the params (default: [])
3 (Optional): BOOL - true to delete the save (default: false)


Returns:
|p1= object: [[Object]] - Vehicle |Parameter 1=
ARRAY - saved value
|p2= target: [[Array]] - in format:
*/
*0: [[Namespace]], [[Group]] or [[Object]] - Where the save will be saved
*1: [[String]] - Name of the save |Parameter 2=
|p3= params: [[Array]] - (Optional, default []) Additional parameters to be saved |Parameter 3=
|p4= delete: [[Boolean]] - (Optional, default [[false]]) [[True]] to delete the save |Parameter 4=


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[Array]] - Saved value |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_saveVehicle]]; --> |= Syntax
|x1= <code>[BIS_tank, [ [[missionNamespace]], "BIS_someTankSave"], ["SomeRandomParam"], [[false]] ] [[call]] [[BIS_fnc_saveVehicle]];</code> |Example 1=
|p1= |= Parameter 1
____________________________________________________________________________________________


| |= Return value
| [[BIS_fnc_loadVehicle]] |See also=
____________________________________________________________________________________________
}}


|x1= <code></code> |=
____________________________________________________________________________________________


| |= See also


}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 14:18, 6 June 2018

Hover & click on the images for description

Description

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

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_loadVehicle

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



Notes

Bottom Section