AI Reference Always not Valid

I have 2 types of AI, friendly one and enemy ai. In my friendly ai blueprint iv’e made a Reference variable to my enemy ai. Now every tick i check if my reference is valid but it’s always not. Can someone explain me why and how do I fix it? Screenshots will help alot.

You say you’ve made a reference to your AI’s enemy in the BP, but how do you set it? For a ref to be valid it needs to be set first.

Hi MieszkoZ love your streams! So this is basically what I did. And could you please tell me exactly what to do since i’m new to all of this accessed none and valid stuff. Thanks!