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

yea that was my bad, i didn’t realize your search radius for random movement was only 1200…that is a comparatively large proportion so i changed my initial comment to acceptance of 100.