ForEachLoop inside function won't take Array input from outside?

I am trying to link an Array outside a function with a ForEachLoop inside, but it won’t have it.

I have a feeling this is because loops seem to run internal to a function, but will be pretty inconvenient if my Array has to go inside the loop with the function…

Is there any way around this or am I stuck?

http://img.photobucket.com/albums/v129/Decimatus/EastOceanBiomeLocator.png

http://img.photobucket.com/albums/v129/Decimatus/WaterBiomeLocator.png

Hover over the error to see what error it is

It tells me it can’t take that input and it wants me to MakeArray. It doesn’t seem to register the array if it is outside the function.

I made a simple repro case for this in a LevelScript that seems to work alright.

I noticed in your picture there is an Error before the function call in 1-8 Ocean Branch. Sometimes an error earlier in the compile process can cause oddities down the road, have you looked closer at that error first?

The macro only has an error when I move the array outside the function. The macro only has an OR node with 3 bool inputs and leads to a branch.

I tried restarting the editor but it didn’t fix the problem, but I think something may have just got hung up without actually being broken…

Thanks for the help!