UE5 Inventory and Item System
This page is part of the documentaiton for my UE5 Inventory and Item System

Save, Load & Reset

UE5 Inventory and Item System Version: 3.0

    Saving and loading is handled automatically for you whenever something is changed. For multiplayer, saving happens on the server.

    There are two types of save games in this system, one for the inventory, and the other for the currency system.

    You can attach a global save game prefix to all save game files using the GlobalSaveGamePrefix variable inside the AC_InventoryItemSystem. This can be used for games offering different saved game slots.

    Currently there is no way to turn off the automatic saving, this is a modification you will have to make yourself. If you make this change you are also going to make some modifications to the storage chest to keep it in sync as currently it will attempt to reload the contents whenever it is opened.

    Reset Player

    To reset everything on a player you can call the ResetPlayerNow event on the AC_InventoryItemSystem. This event will reset everything related to the player and subsystems. You will also have the option to award the player with the starter items again right away if this is happening at runtime.

    AC_Inventory components can also be reset manually by calling the ResetInventory event on them.

    To reset just the currencies call ResetAllCurrencies on the AC_Currency component on your player controller.

    This documentation and asset version are new. If you encounter any bugs or if anything doesn't make sense, please let me know.