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