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"

creating stackable items in an array

My blueprint has changed substantially by now but originally my inventory system follow that of a popular ue4 tutorial on youtube.

Basically what I am trying to do is create stackable items so if you pickup more than one of the same kind of item, it changes the name to equal however much there is of the item opposed to adding an additional struct to the array.

If I'm correct I would go about this with the Find?

Would I need to do a for each loop of some sort?

Any help is appreciated!

Blueprint Containing the Find Item

In Game Example

Product Version: UE 4.20
screenshot1.png (420.3 kB)
screenshot2.png (3.1 MB)
more ▼

asked Nov 13 '18 at 04:07 AM in Blueprint Scripting

avatar image

1 1 2

avatar image Jdfskitz Nov 13 '18 at 04:30 AM

Update. I've gotten it to find the item as now with the collectable item it only creates 1 after I pick up many. However it is not setting the text for the item.

I need to use Set Elem in Array and Get Item From Array. Instead of Get Item and Set Item.


screenshot1.png (447.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The solution was a for loop a couple booleans and index checkers.

For Loop Part 1

For Loop Part 2

screenshot1.png (438.4 kB)
screenshot2.png (398.4 kB)
more ▼

answered Nov 13 '18 at 06:10 AM

avatar image

1 1 2

(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