Where To Store Inventory in Multiplayer?
GameInstance? , GameState? , PlayerState? , PlayerController? etc.
I will create UMG to Upgrade & Equip/UnEquip & Repair & Modify my weapon in Inventory
You have anything to guide me?? Please help!
Off the top of my head the way I would store it is:
Use the player state to store what the user has in their inventory and how much. Store each item, it's quantity, the durability of each item, etc.
In the player controller store which items are currently equipped to hot keys/item hot bar. Use a separate variable for which items are in the users hand.
If your items persist across maps/map loads you can save your item data that is in the player state to a save file. You could also save the item data that's in the player controller to a save file. That way the items bound to hot keys / hot bars can be restored.
answered Jan 14 '17 at 09:14 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here