BIS fnc saveVehicle: 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 | ||
| Save vehicle's params (textures, animations, crew). | | Save vehicle's params (textures, animations, crew). | ||
| [object,target,params,delete] call [[BIS_fnc_saveVehicle]] | | [object,target,params,delete] call [[BIS_fnc_saveVehicle]] | ||
|p1= object: [[Object]] - Vehicle | |p1= object: [[Object]] - Vehicle | ||
|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 | *1: [[String]] - Name of the save | ||
|p3= params: [[Array]] - (Optional, default []) Additional parameters to be saved | |p3= params: [[Array]] - (Optional, default []) Additional parameters to be saved | ||
|p4= delete: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete the save | |p4= delete: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete the save | ||
| [[Array]] - Saved value | | [[Array]] - Saved value | ||
|x1= <code>[BIS_tank, [<nowiki/>[[missionNamespace]], "BIS_someTankSave"], ["SomeRandomParam"], [[false]] ] [[call]] [[BIS_fnc_saveVehicle]];</code> | |x1= <code>[BIS_tank, [<nowiki/>[[missionNamespace]], "BIS_someTankSave"], ["SomeRandomParam"], [[false]] ] [[call]] [[BIS_fnc_saveVehicle]];</code> | ||
| [[BIS_fnc_loadVehicle]] | | [[BIS_fnc_loadVehicle]] | ||
}} | }} | ||
Revision as of 23:46, 17 January 2021
Description
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