Making an array from variables in multiple instances?

I’ve not been able to find any questions/answers/tutorials that specifically address this but maybe I just suck!

I’ve got a public variable attached to a cube with 3 instances, each one with a different variable value. I’m trying to make a second blueprint that reads these values and then adds them together, text rendering the answer, I guess it’s a simple calculator using different blueprints. Hopefully these images will make it clearer. Anyway, I can read the variable from one specific instance but not all instances so I’m guessing either this isn’t something I can do with an array or I’m doing something wrong in getting the variables from the instances into the array to begin with -

Using a log I can see that the array is at least organised properly in that if I have 3 instances then it has 3 “spaces” and if I create more instances of of the “Target Box BP” then the array increases in size too, but still I can only reference one instance at a time.

Thanks for any help, maybe I’m trying to run before I walk but any guidance or nudges in the right direction would be awesome! I’ve also looked into casting but can’t quite get my head round it/get it to work at all.

The Make Array node you are using is actually creating an array each time you drag a pin from it. So first you make an array of length one then resize it. Then you make a NEW array of length one and loop through it, hence only looping once.

I’d suggest just clicking the outpin of the select all actors and promote to variable. Then make a for loop from that variable and aggregate their Cube Score into Total Score. Then on the for loop complete call your Set Text passing the new aggregated Total Score.

Fantastic thanks for the help, it took some trial and error but I got there thank you very much!