How to make ai avoid each other?

So I’m trying to find a way to make the ai “aware” of each other. so if they get near each other they’ll move out of the way and return to their path to the goal. I am using blueprints and not behavior trees.

You’re looking for ROI avoidance.A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums2-_Avoidance

Or DetourCrowdAvoidance. If you’re running 4.7, you just need to reparent your AI Controller.

I cannot thank you enough for this. I was trying to figure out ways of doing avoidance with distance values and hit events and line traces and was pretty much going insane lol. I knew there had to be some hilariously simple solution but I couldn’t find any documentation on it or tutorials or anything. I did see the doc you linked but it never worked because it wasn’t parented to the controller lol.

I hope this will help other people too.

Hey Deventico,
Thanks for the tip, this immediately made my AI avoid each other. They still get stuck on each other quite a bit though albeit momentarily. Any idea on how to make them avoid each other by a larger radius?

You could add some collision to the ai so that other ai’s cannot walk to its location.