AI: OnSeePawn - Return to Patrol after loosing sight of player

Good afternoon. Long time reader first time poster, as they say. I am a bit of a beginner to AI so please bare with me.

I have a AI Blueprint i’ve been working on, that has two main scripts: “AI Patrol” (moving chronologically between target points based on AI MOVE TO), and “Seek Out Player” (based on ON SEE PAWN and AI MOVE TO).

The two work well independently - the AI roams the hall, and then chases the player once they are seen based on the visual PawnSensing component. For the life of me I can’t figure out how to get the AI to go back to the AI PATROL when they lose sight of the player, and I do not know how to tell the AI to continuously check if the player is still being seen.

I’ve dug through forums and video tutorials and am surprised at how little information there is on what I anticipated would be a fairly common need, so I figured it’s time to post. I have heard about AI Perception Component, however I am so close to done - this is the last piece, so I am hoping I don’t have to start over from scratch. I’ve attached screenshots of my BP. I have a few notes in there please ignore :slight_smile:

Thank you for all help in advance.

im having the same problem, i want the AI to only move in on the player if it sees the player so you are able to shake them off.

I use this system which might be a little sketchy but it also doesn’t work, even when the string stops printing the ai is still moving on my position even if i keep moving.