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"

Retrieving values from Enumerations

Hello everyone. Currently I’m working on an inventory system. I have one base actor bp and 3 child of it to create 3 different type items. Like weapons, equipments and consumables. All of these has their own enums. Also i created 1 master item info enum. I’m creating the weapons from master weapon bp for example. Right now i can pick items from ground but the problem is i couldn’t get specific ( from weapon enum, equipment enum etc.) values of their names. You can check the text binding bp from at the end of the post. Any suggestion will be helpfull. Dont know what should i put the empty node i think i need to use Cast to but it wants a return value as object.


alt text

Edit: I’m using structures to get them ofcourse. Totally forgot that

Product Version: UE 4.19
wbp1.png (154.5 kB)
more ▼

asked Jun 15 '18 at 05:42 PM in Blueprint Scripting

avatar image

Nocte Studios
6 1 4

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

1 answer: sort voted first

Enumerator variables have a function that works on them to convert their key name to a string or text. Sorry I can't remember the name of the node right now, but I use it to display network errors to the user if they lose connection to the server (servertravelerror is an enum).

Try dragging a wire from the enum and type "string", "name", or "text" in the context menu. It'll probably be one of those.

more ▼

answered Jun 18 '18 at 07:02 PM

avatar image

3.8k 18 20 20

avatar image Nocte Studios Jun 18 '18 at 07:11 PM

Thank you so much for your answer. I solved this problem with using another structure that contains all values structures etc.. It was a little bit dirty though but it solved my problem anyway :)

(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