x

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"

Item combine

Hi,

Im trying to create a simple way to combine two items in inventory, click item which opens sub menu where you click use with and then you can click another item and it brings and out come like for an example you click knife then use with and then click apple and you get peeled apple.

How I should store the first item so that i can select the second item?

Thanks!

Product Version: UE 4.19
Tags:
more ▼

asked Jun 02 '18 at 11:59 AM in Blueprint Scripting

avatar image

Pekka
3 1 4

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

This is more of a tedious thing than a difficult thing to do. You basically need to just store the items as 2 separate variables. So in your inventory "on clicked" events you would have to somehow link that to whatever means you "store" the item in that slot's data and then use that data to set a new variable like "selected item #1" then do the same for the second clicked item, check if "item 1" is valid, if yes, "set item 2", if not "set item 1" (this way you can determine if you already selected an item or not. And basically you just have to slowly logic your way through this. Just make it small baby steps and you'll get there.

more ▼

answered Jun 03 '18 at 02:39 AM

avatar image

Nebula Games Inc
4.9k 27 9 14

avatar image Pekka Jun 04 '18 at 06:17 PM

Started to do it so and its now working some how. Thank you!

avatar image bathorysthroat Mar 26 '19 at 12:12 AM

Can you please explain how you stored the Sot contents of the first slot? I'm trying to do the same thing and can't figure it out.

(comments are locked)
10|2000 characters needed characters left
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