[Solved] Targeting a global array in a 'For every child'

Does anyone know how to target a global variable in a ‘For every child’ block? It only shows me scene variables in the auto-complete, and I can’t work out the syntax. The array that I am trying to target is inside a structure variable called ‘inventory’. So ‘inventory.array’ is useful in some expressions, but that isn’t helping me in the FeC block. I’ve tried various things but can’t work it out. Thanks in advance.

image

Hi @worriedpixels,

The for “every child” only works with scene variables. You need to copy the global array to a temporary scene array and work with it instead.

2 Likes

Thank you very much for the quick reply.

2 Likes