# How do I make a horde of enemies not run in a straight line?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-horde-of-enemies-not-run-in-a-straight-line/379285>\
**Category:** AI\
**Tags:** ai-navigation, detour-crowds, unreal-engine, Blueprint, question\
**Created:** [December 14, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-horde-of-enemies-not-run-in-a-straight-line/379285 "2016-12-14T18:16:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7104297e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7104297e](https://forums.unrealengine.com/u/anonymous_user_7104297e)\
**Post date:** [December 14, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-horde-of-enemies-not-run-in-a-straight-line/379285/1 "2016-12-14T18:16:06Z")

</div>

I’m looking for tips in how to create better AI, I am just looking for recommended paths because I have tested a lot of things and am low on ideas. I have a bunch of enemies that are going to charge at the player. the problem is that if the player is far enough away, they will eventually just merge into a straight line. Do I need to do some sort of EQS system? I have tried detour crowd AI but that isn’t working so am I doing something wrong with the agent radius? Any tips or information would be helpful.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fdc8a82a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fdc8a82a1](https://forums.unrealengine.com/u/anonymous_user_fdc8a82a1)\
**Post date:** [July 12, 2017, 10:15pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-horde-of-enemies-not-run-in-a-straight-line/379285/2 "2017-07-12T22:15:13Z")

</div>

Give each enemy a random location that is close to (but not) the player and have it so once they reach that location (or get within a certain radius) directly charge at the player. The simplest way would probably be to generate these locations to the left and right of the player at a specified distance and then generate a new location for X number of enemies at the same specified distance from the player.

Hope this isn’t helps and isn’t too confusing.
