How do i make my AI stop following me when I look at it

This may sound dumb but i want to be able to make my ai stop following me when i look at it but it continues when im not looking. Like a lion trying to hunt its prey.
Example: A horror game where if i turn on my flashlight , the monster stops or disappears and when i turn it off , it continues following me.

Dont have any screenshots , just the basic ai follow character nodes.

You can add a component to your pawn for Sendung. Then you can react on a Event when your pawn hast the AI in ita POV (you could also Access “Hearing”). So when you See the AI, Just call the relevant Event in the AI, If you Stop seeing it, call it Vice versa

Using WasRecentlyRendered might do a better job for a horror game, since it works with shadows. Combine this with a check whether the flash light is on and tell your AI to stop moving.