Get Array outputs an int regardless of array type

arrayhelp.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!

Hm, works fine here. ;p

Capture.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.

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.

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!

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

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