Doesn't work for backpacks in backpack, unlike getUnitLoadout.
Description
Save unit's loadout.
Syntax
[unit, input, params, delete] call BIS_fnc_saveInventory
Parameters:
unit: Object - unit whose inventory should be savedinput: Array format [target, loadoutName]:params: Array - (Optional, default []) custom parameters stored with the loadoutdelete: Boolean - (Optional, default false) whether or not to delete the loadout
Returns: Array - saved value
Examples
Example 1
[player, [missionNamespace, "BIS_inv"], [], true] call BIS_fnc_saveInventory;
See also
BIS_fnc_loadInventory · BIS_fnc_exportInventory · BIS_fnc_deleteInventory · getUnitLoadout