Page MenuHomeFeedback Tracker

BIS_fnc_saveInventory does not save the magazines ammo count
New, WishlistPublic

Description

The function BIS_fnc_saveInventory does not save the magazines ammo count.
And the associated function BIS_fnc_loadInventory does not set the magazines ammo count.

Currently, we have no easy BIS' function/command to duplicate accurately a unit loadout.

Details

Legacy ID
2039376964
Severity
None
Resolution
Open
Reproducibility
Always
Category
Inventory
Steps To Reproduce

Fire somme ammo from one on several player's magazines.
Execute this code in the debug console :

0 spawn
{

    sleep 4;

    [
        player,
        [player] call BIS_fnc_saveInventory
    ] call BIS_fnc_loadInventory;

};

After the save&load of loadout, the player has all its magazines fully filled.

Event Timeline

madbull edited Steps To Reproduce. (Show Details)Nov 13 2014, 10:36 AM
madbull edited Additional Information. (Show Details)
madbull set Category to Inventory.
madbull set Reproducibility to Always.
madbull set Severity to None.
madbull set Resolution to Open.
madbull set Legacy ID to 2039376964.May 7 2016, 7:49 PM

Also it does not save Laserbatteries when the player has a laser designator.