How to solve infinite loop detected error?

Hello. I want to create ai who search player. AI should rotate around Z until found player. I try to make this and had the error. I have two blueprints: AI_Controller and Enemy. I have one variable in AI_Controller BP named See_You. I transfer to second BP that variable using CastTo. I understand what the infinite loop error occured because the transferring of See_You in Enemy BP was once and that variable will be always the same in Enemy BP. But how to get round it?

Please help me to solve this problem.

Try linking the delay to the completed pin on the while loop.Linking it too the first pin means that they is no delay so it will be taken as an infinite loop.Try taking a look at this:

hope this helped