How do you make AI to stop following you after a certain distance?

I’ll check that out