# How to make ai avoid each other?

**URL:** <https://forums.unrealengine.com/t/how-to-make-ai-avoid-each-other/310249>\
**Category:** AI\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [March 10, 2015, 3:44am UTC](https://forums.unrealengine.com/t/how-to-make-ai-avoid-each-other/310249 "2015-03-10T03:44:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deathclonic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deathclonic](https://forums.unrealengine.com/u/deathclonic)\
**Post date:** [March 10, 2015, 3:44am UTC](https://forums.unrealengine.com/t/how-to-make-ai-avoid-each-other/310249/1 "2015-03-10T03:44:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Havoc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/havoc/32/88710_2.png) [@Havoc](https://forums.unrealengine.com/u/Havoc)\
**Post date:** [March 10, 2015, 6:35am UTC](https://forums.unrealengine.com/t/how-to-make-ai-avoid-each-other/310249/2 "2015-03-10T06:35:38Z")

</div>

You’re looking for ROI avoidance.[A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Unreal_Engine_AI_Tutorial_-)_2_-\_Avoidance

---

<div class="post-metadata">

**Author:** ![Deventico\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deventico\_1](https://forums.unrealengine.com/u/Deventico_1)\
**Post date:** [March 10, 2015, 7:14am UTC](https://forums.unrealengine.com/t/how-to-make-ai-avoid-each-other/310249/3 "2015-03-10T07:14:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![deathclonic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deathclonic](https://forums.unrealengine.com/u/deathclonic)\
**Post date:** [March 10, 2015, 5:27pm UTC](https://forums.unrealengine.com/t/how-to-make-ai-avoid-each-other/310249/4 "2015-03-10T17:27:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [February 10, 2017, 12:43am UTC](https://forums.unrealengine.com/t/how-to-make-ai-avoid-each-other/310249/5 "2017-02-10T00:43:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jaidendc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaidendc](https://forums.unrealengine.com/u/jaidendc)\
**Post date:** [January 29, 2019, 4:46am UTC](https://forums.unrealengine.com/t/how-to-make-ai-avoid-each-other/310249/7 "2019-01-29T04:46:24Z")

</div>

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