Ilias38rus
Doesn't work for backpacks in backpack, unlike setUnitLoadout.
Results appear below as you type; use the arrow keys to move through them.
Adds a predefined loadout (either via CfgVehicles, CfgRespawnInventory, or a custom inventory saved via BIS_fnc_saveInventory) to a specified unit.
param call BIS_fnc_loadInventory
Parameters:
[]) array of Strings that define what part of the loadout to ignore, e.g ["weapons", "uniform"]Returns: Boolean
_loadout = [player, configFile >> "CfgVehicles" >> "B_Soldier_SL_F"] call BIS_fnc_loadInventory; // gives BLUFOR Squad Leader's loadout to player unit
to save and load the inventory:
[player, [missionNamespace, "TAG_SavedInventory"]] call BIS_fnc_saveInventory; // save it
[player, [missionNamespace, "TAG_SavedInventory"]] call BIS_fnc_loadInventory; // load it
BIS_fnc_saveInventory · BIS_fnc_exportInventory · BIS_fnc_deleteInventory · setUnitLoadout
Doesn't work for backpacks in backpack, unlike setUnitLoadout.