# Making multiple AIs choose different spots in EQS

**URL:** <https://forums.unrealengine.com/t/making-multiple-ais-choose-different-spots-in-eqs/487394>\
**Category:** AI\
**Tags:** ai-navigation, EQS, unreal-engine, question\
**Created:** [August 13, 2021, 12:17pm UTC](https://forums.unrealengine.com/t/making-multiple-ais-choose-different-spots-in-eqs/487394 "2021-08-13T12:17:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dodge\_King28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dodge\_King28](https://forums.unrealengine.com/u/Dodge_King28)\
**Post date:** [August 13, 2021, 12:17pm UTC](https://forums.unrealengine.com/t/making-multiple-ais-choose-different-spots-in-eqs/487394/1 "2021-08-13T12:17:11Z")

</div>

Hi everybody, I’m using EQS to so that AIs can circle around the player and attack from different directions. The problem I’m facing at the moment some AIs choose the same spot. How can I make it so every AI chooses different spot?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Dodge\_King28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dodge\_King28](https://forums.unrealengine.com/u/Dodge_King28)\
**Post date:** [August 13, 2021, 12:24pm UTC](https://forums.unrealengine.com/t/making-multiple-ais-choose-different-spots-in-eqs/487394/2 "2021-08-13T12:24:45Z")

</div>

Also, tried overlap, didn’t work. Tried getting location of other AIs and choosing the farthest one didn’t work either.

---

<div class="post-metadata">

**Author:** ![NiqyDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NiqyDev](https://forums.unrealengine.com/u/NiqyDev)\
**Post date:** [April 24, 2026, 12:23pm UTC](https://forums.unrealengine.com/t/making-multiple-ais-choose-different-spots-in-eqs/487394/3 "2026-04-24T12:23:57Z")

</div>

I figured this out on my turn bases project for anyone needing an answer to this. May not be helpful to a real time game.

When running the EQS, instead of choosing single best match select All matching.  
OnQueryFinished do a for loop with break that goes through all the location results.  
Run a capsule overlap trace on each location checking for other pawns, if no pawn is hit by the overlap set the location and break out of the loop and move to that location.

For a real time game you could spawn a actor at the location the Ai is moving to, make the overlap trace check for that actor. This will ensure they don’t move to the same location before they have moved to it.
