IsValid? not working with Get all actors of class

I’ve been trying to put the “Isvalid?” node where ever I could think off, with no luck, so now I need your help! How do I fix this runtime error? I’ve marked the branches that get the error in the pictures. I have other blueprints working fine with this setup, but the error started occurring when I added the “checks if BP03 and BP01 is active”.

!249100-

!249101-

!249102-

You still get that errors not because the isValid node don’t work but because you are recovering data (the boolean variables) from a source that doesn’t exist.

If you follow the execution flow you can notice that the “Check if Blue” loop contains a branch that get variables from other 2 loops that wasn’t running.

My advice is to store your actors arrays into 4 variables and use the get node to retrieve the correct boolean variable.

Something like this

Hello, thank you very much for your answer! I’ve set up the way you explained it, and with the testing I did so far, it worked! This is how it looks now. This looks correct to you?

It looks great :slight_smile: