# Array Contains Item plug-in order bug

**URL:** <https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390>\
**Category:** Blueprint\
**Tags:** array-nodes, unreal-engine, bug-report, Blueprint, question\
**Created:** [August 12, 2015, 3:34am UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390 "2015-08-12T03:34:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Technotium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Technotium](https://forums.unrealengine.com/u/Technotium)\
**Post date:** [August 12, 2015, 3:34am UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/1 "2015-08-12T03:34:31Z")

</div>

Array/contains item node allows you to plug in an object reference in first, then an actor class array second, and that works perfectly fine. However, you can’t do it the other way around, and when you restart the editor, the contains item node that worked prefectly fine before will issue a warning. Replugging it fixes it, but having to replug every node like that upon startup gets tiring.

 ![53791-bugreport.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/b/8cba07a374d56803c4e6b184a930ef6715a5ff4a.png)

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [August 12, 2015, 7:36pm UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/2 "2015-08-12T19:36:58Z")

</div>

Hi Technotium,

I attempted to reproduce your issue but I couldn’t get the same results. Could you recreate the error in a small test project and upload it here?

---

<div class="post-metadata">

**Author:** ![Technotium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Technotium](https://forums.unrealengine.com/u/Technotium)\
**Post date:** [August 13, 2015, 1:24pm UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/3 "2015-08-13T13:24:36Z")

</div>

> **[Dropbox - File Deleted](https://www.dropbox.com/sh/grmbqg9ki7fwp17/AAB3V5EyQC-OfntBzuPlH6x6a?dl=0)**
>
> Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

Here you go, a recreation is inside the FirstPersonCharacter blueprint.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 13, 2015, 3:30pm UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/4 "2015-08-13T15:30:35Z")

</div>

Hello Technotium,

I was able to reproduce this issue on our end in the project that you provided. However, I then tried to recreate this issue in a clean project and was unable to do so. I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Did you use any assets from your original project when creating the test bed that was given?
2. If so, could you try recreating this issue in a completely clean project and then provide a detailed set of steps to reproduce this issue on our end?
3. Was the project that is having the issue upgraded from an older version of the engine?

---

<div class="post-metadata">

**Author:** ![Technotium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Technotium](https://forums.unrealengine.com/u/Technotium)\
**Post date:** [August 13, 2015, 3:48pm UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/5 "2015-08-13T15:48:05Z")

</div>

Hmm, that’s weird.

The test bed was just a First Person Shooter Template where I made two additional blueprints so that I could add one to the Actor Class array, there shouldn’t be any other assets than that.

Both projects I have encountered the issue in have been made in 4.8.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 13, 2015, 3:58pm UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/6 "2015-08-13T15:58:58Z")

</div>

Hello Technotium,

There may be a small difference in the steps take to try and reproduce this issue myself. Could you answer question number two and provide a detailed set of steps to reproduce this issue? This will insure that we are seeing the same results.

---

<div class="post-metadata">

**Author:** ![Technotium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Technotium](https://forums.unrealengine.com/u/Technotium)\
**Post date:** [August 13, 2015, 4:27pm UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/7 "2015-08-13T16:27:46Z")

</div>

Certainly.

Let’s say I want do control what can and can not be destroyed by a player with some sort of disintegration device. (I know there are more optimal ways of doing this, but just as an example.)

Step 1: Make an Actor Class Array Variable, and put the actors you want to destroy in that array.

Step 2: Have the player make anything that can hit objects and give an Out Hit pin. (I’ve only used linetraces by the visibility channel, but I would think any Out Hit could recreate it.)

Step 3: Split the Out Hit pin and get the Out Hit Hit Actor, drag a getclass function out of the Hit Actor pin.

Step 4: Make an Array Contains node, plug the getclass Object Class pin into the lower pin of the Contains node, then plug your Actor Class Array Variable into the Array pin of the Contains node.

Step 5: Use the boolean output pin of the Contains node to drive a branch where true leads to destroying the shot actor, and false does nothing.

Step 6: Test it, it should work fine. Restart the project. Test it again without opening the blueprint it is in, it should still work fine. Open the blueprint it is, you should get warnings.

Step 7: Simply replug the Contains node, it should now work fine until the next time you restart.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 13, 2015, 8:49pm UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/8 "2015-08-13T20:49:26Z")

</div>

Hello Technotium,

I tried following the steps that you have provided above and I was still unable to reproduce this issue in a clean project. Could you try refreshing your nodes? Open the blueprint \> File \> Refresh all nodes and let me know if this makes a difference.

---

<div class="post-metadata">

**Author:** ![Technotium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Technotium](https://forums.unrealengine.com/u/Technotium)\
**Post date:** [August 14, 2015, 10:51am UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/9 "2015-08-14T10:51:18Z")

</div>

Refreshing the nodes when they are giving warnings does nothing, doing it when they are functioning gives the warnings.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 14, 2015, 2:36pm UTC](https://forums.unrealengine.com/t/array-contains-item-plug-in-order-bug/328390/10 "2015-08-14T14:36:24Z")

</div>

Hello Technotium,

I was able to reproduce this issue on our end. I have written up a report () and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your information and time.

Make it a great day
