First off, I might suggest setting your materials at the same time that you set whether they’re true or false. Setting materials at tick could get costly.
As for the check, you should store whether each cube is true or false in a bool array. Then after every time the player changes the cubes, you run a check to see if they’re all true. If they are, play your open door event. I made something quickly to sort of help you out. Replace the string with the call to your door event
I tried playing a matinee in the square class blueprint (where the blueprint in the question is in) but i cant lay it there. Can you play matinees in a class blueprint?
So i create variable in the class blueprint. Tick the variable with each square then use the blueprint you provided? Where should i put the set you used in my blueprint. I also don’t know how to reference the matinee actor for the door in the class blueprint to the level blueprint for me to open the door.
I’m asking because i can’t call the function in the class blueprint and i don’t have a forloop to connect to in the level blueprint because all the functionality is in the class blueprint.
GetAllActorsOfClass: you call it in the level BP and specify your tile BP as the thing you want to find. It will find all the tiles for you and then you can run the for loop on it.