How to stop AI from chasing a character

Hey, I’m doing a horror game where there’s a character and a monster trying to kill that character. I’ve already done the chase and roam system, but I don’t know how to make it so that when I disappear from the monster’s field of vision, it stops chasing me, and it enters roam mode again

In your case, my advice, is for you to use AIPerception component, instead of PawnSensing.
Create a sight sense and then it’s just a question of:

If you still want to use PawnSensing then check this one [https://answers.unrealengine.com/questions/129060/pawn-sensing-false.html][2] or [https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/30202-help-how-to-detect-when-pawn-sensing-is-not-active][3].

The previous answer in the right one.

Just click on the link

Hmm, it’s seems like he can’t see me now, look: - YouTube

Did you create the sight sense and set right the detection by affiliation?

306211-1.jpg

yes, but it still doesnt work