# Get Array outputs an int regardless of array type

**URL:** <https://forums.unrealengine.com/t/get-array-outputs-an-int-regardless-of-array-type/33639>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [June 27, 2015, 2:39am UTC](https://forums.unrealengine.com/t/get-array-outputs-an-int-regardless-of-array-type/33639 "2015-06-27T02:39:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bzaaaaa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bzaaaaa](https://forums.unrealengine.com/u/bzaaaaa)\
**Post date:** [June 27, 2015, 2:39am UTC](https://forums.unrealengine.com/t/get-array-outputs-an-int-regardless-of-array-type/33639/1 "2015-06-27T02:39:23Z")

</div>

![arrayhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/0/9a0ca993487587847c496791f63ce58d74a3b624.png)

Title says it all. I am using arrays to store ability information and variables and when I use the Get Array node it outputs an int every time. This happens in every blueprint for every array type, for instance I have an array of bools to check whether or not the ability is ready and Get Array returns an int which is obviously out of scope if my input is expecting a bool. Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 27, 2015, 9:33am UTC](https://forums.unrealengine.com/t/get-array-outputs-an-int-regardless-of-array-type/33639/2 "2015-06-27T09:33:13Z")

</div>

Hm, works fine here. ;p

![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/7/3c7b786b9c813b94d1e8104c69c23ee7e35d4261.png)

Can you show an example where it does not work as intended?

In your image, you get a float out of float array… so it works fine.

---

<div class="post-metadata">

**Author:** ![bzaaaaa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bzaaaaa](https://forums.unrealengine.com/u/bzaaaaa)\
**Post date:** [June 27, 2015, 9:54am UTC](https://forums.unrealengine.com/t/get-array-outputs-an-int-regardless-of-array-type/33639/3 "2015-06-27T09:54:10Z")

</div>

![arrayhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/b/64b3cb58611d1bb5749f0cea20787d34b5ed4f9a.png)

It doesn’t work as intended in the first photo, it says “Item/Integer” when I hover over the Get Array output, I know it is the color of a float but it doesn’t behave like one. In this example the same thing is happening, the Get Array is returning an int instead of a bool and when I have it selected for debugging it says the variable is out of scope. Both values can be true and the branch still won’t fire.

---

<div class="post-metadata">

**Author:** ![bzaaaaa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bzaaaaa](https://forums.unrealengine.com/u/bzaaaaa)\
**Post date:** [June 27, 2015, 10:01am UTC](https://forums.unrealengine.com/t/get-array-outputs-an-int-regardless-of-array-type/33639/4 "2015-06-27T10:01:13Z")

</div>

I solved my own problem. I didn’t realize arrays did not refresh on their own when a value they contained was changed. Thank you for your time!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 27, 2015, 1:08pm UTC](https://forums.unrealengine.com/t/get-array-outputs-an-int-regardless-of-array-type/33639/5 "2015-06-27T13:08:31Z")

</div>

I completely ignored the tooltip, my bad! Glad you solved it.

---

<div class="post-metadata">

**Author:** ![ZoltanJr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanJr](https://forums.unrealengine.com/u/ZoltanJr)\
**Post date:** [June 29, 2015, 2:27am UTC](https://forums.unrealengine.com/t/get-array-outputs-an-int-regardless-of-array-type/33639/6 "2015-06-29T02:27:39Z")

</div>

Just for future reference remember to keep an eye on the colour of the array value, they always show what the type is.
