# How do i make AI pawns keep a certain distance between themselves?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-ai-pawns-keep-a-certain-distance-between-themselves/385341>\
**Category:** AI\
**Tags:** distance, unreal-engine, pawn, avoidance, question\
**Created:** [February 18, 2017, 12:36pm UTC](https://forums.unrealengine.com/t/how-do-i-make-ai-pawns-keep-a-certain-distance-between-themselves/385341 "2017-02-18T12:36:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [February 18, 2017, 12:36pm UTC](https://forums.unrealengine.com/t/how-do-i-make-ai-pawns-keep-a-certain-distance-between-themselves/385341/1 "2017-02-18T12:36:54Z")

</div>

hello, i’m doing the AI for my game and i noticed that when i have multiple targets moving towards me the AI pawns all group up together with minimal distance between them, how can i solve this? Does AI Avoidance help solve this problem besides doing deviations to avoid other AI paws? Or do i have to add an invisible sphere component to the AI pawn that nullifies navigation around him?

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [March 21, 2017, 12:14am UTC](https://forums.unrealengine.com/t/how-do-i-make-ai-pawns-keep-a-certain-distance-between-themselves/385341/2 "2017-03-21T00:14:47Z")

</div>

I tried looking the CrowdFollowingComponent and found some parameters, bEnableSeparation, SeparationWeight, CollisionQueryRange. Could this help? Another thing i’ve thought was to override the capsule collider radius, but that will bring other problems. Can i override the agent radius and make that an area that other AI pawns can’t walk through except himself?

---

<div class="post-metadata">

**Author:** ![AsdPtion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AsdPtion](https://forums.unrealengine.com/u/AsdPtion)\
**Post date:** [March 18, 2024, 11:16am UTC](https://forums.unrealengine.com/t/how-do-i-make-ai-pawns-keep-a-certain-distance-between-themselves/385341/3 "2024-03-18T11:16:26Z")

</div>

Still actual in 2024. Any solutions?
