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"

How to find specific Actor in Array

Hi I want to create more Merchants but I am Stuck. The problem is that i have One Blueprint for both of them alt text

because they are both the same type merchant but they offer different items. I have 2 Merchants in the world:alt text alt text Now the question is how can the system recognise one from another when player interact with them? Because the thing is when right now I open the shop both of them offer the same items even when the second one have set different items in the Offer array. alt text

This is where i think the error is because if I set number 1 in "Get" then there will be offer of the second merchant. But i really dont know how to set the blueprint so both of them would have their Offer not the same one. Any ideas?

Product Version: UE 4.14
Tags:
same-blueprint.png (12.8 kB)
twoinworld.png (154.1 kB)
offereditems.png (18.1 kB)
get0.png (160.0 kB)
more ▼

asked Feb 04 '18 at 03:46 PM in Blueprint Scripting

avatar image

Dikes365
9 2 2 5

avatar image erik321123 Feb 04 '18 at 03:53 PM

I would find your solution in the way you interact, you dont really need to get all actors of class, you can probably come away with a overlap event and some button press. Than you would already heave the right actor

avatar image Dikes365 Feb 04 '18 at 05:34 PM

That is actually quite good idea as it is now my interacting methot look like this:

![alt text][1]

Im using Interface for Interaction. But i will try your idea. [1]: /storage/temp/229458-interact.png

interact.png (121.3 kB)
avatar image erik321123 Feb 04 '18 at 06:00 PM

That is quit a good way, you already send your interaction actor, if you save that that is the actor you want

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

0 answers: sort voted first
Be the first one to answer this question
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