# How to find specific Actor in Array

**URL:** <https://forums.unrealengine.com/t/how-to-find-specific-actor-in-array/416399>\
**Category:** UI\
**Tags:** array-nodes, actor-blueprint, tarray:-arrays-in-un, unreal-engine, Widget, Blueprint, question\
**Created:** [February 4, 2018, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-find-specific-actor-in-array/416399 "2018-02-04T15:46:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkloreCreations](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkloreCreations](https://forums.unrealengine.com/u/DarkloreCreations)\
**Post date:** [February 4, 2018, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-find-specific-actor-in-array/416399/1 "2018-02-04T15:46:12Z")

</div>

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

![229452-same-blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/0/bc02ada22a23d6ec80dcf237648793a2261476d4.png)

because they are both the same type merchant but they offer different items.  
I have 2 Merchants in the world:

![229453-twoinworld.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/3/c0398ffa13fbfceb251dd8d8f3d57985350136a3.png)

![229454-offereditems.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/e/3feacdef7cda8b30a027bb9baf6e78f924692269.png)

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.

 ![229455-get0.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/6/c76f47e5bdc1894d6cea2be8d290ee79fbfa7675.png)

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_210522a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_210522a1](https://forums.unrealengine.com/u/anonymous_user_210522a1)\
**Post date:** [February 4, 2018, 3:53pm UTC](https://forums.unrealengine.com/t/how-to-find-specific-actor-in-array/416399/2 "2018-02-04T15:53:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DarkloreCreations](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkloreCreations](https://forums.unrealengine.com/u/DarkloreCreations)\
**Post date:** [February 4, 2018, 5:34pm UTC](https://forums.unrealengine.com/t/how-to-find-specific-actor-in-array/416399/3 "2018-02-04T17:34:03Z")

</div>

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

 ![229458-interact.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/3/243d3cc15f0617d3afd26f47f210c3599bf7a365.png)

Im using Interface for Interaction. But i will try your idea.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_210522a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_210522a1](https://forums.unrealengine.com/u/anonymous_user_210522a1)\
**Post date:** [February 4, 2018, 6:00pm UTC](https://forums.unrealengine.com/t/how-to-find-specific-actor-in-array/416399/4 "2018-02-04T18:00:52Z")

</div>

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