Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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!

Product Version: Not Selected
more ▼

asked Jan 14 '17 at 06:50 AM in Blueprint Scripting

avatar image

Aom Siriwat
6 3 6 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Jan 14 '17 at 09:14 AM

avatar image

699 24 24 56

avatar image elitereloaded Jan 26 '17 at 03:42 AM

Did this answer your question? If so could you mark it as the accepted answer so other people know who have the same question as you?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question