Hi, so in my Player controller I have an array of actors, and each actor have a boolean var. I want to check, for each element, if it’s var is true or false. But I can’t find the “get var” node from the for loop. any advice?
I can’t see the var from the “Array element” exit.
Edit: “selectedUnits” array is defined as an array of actor type “Ally Generic”, which has said bolean var. Yet like I said I can’t find the “get” node for the var, pulling from the Array element exit.
Weirdly it doesn’t. I am not using any cast, but the Array is of the correct type. Could you elaborate on how to solve this using cast? I’il like to try that as well. And thanks!
If the array is of type ‘reference to Ally Generic’, then it should work.
If the array is of type ‘reference to actor’, then you need to pull that element pin, and search for ‘cast to’ your blueprint type. Then you can access the variable.