# AI Patrol failing

**URL:** <https://forums.unrealengine.com/t/ai-patrol-failing/421072>\
**Category:** AI\
**Tags:** ai-navigation, target-point, unreal-engine, Blueprint, question\
**Created:** [March 28, 2018, 1:29am UTC](https://forums.unrealengine.com/t/ai-patrol-failing/421072 "2018-03-28T01:29:35Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Aethryx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aethryx](https://forums.unrealengine.com/u/Aethryx)\
**Post date:** [March 28, 2018, 3:13am UTC](https://forums.unrealengine.com/t/ai-patrol-failing/421072/21 "2018-03-28T03:13:58Z")

</div>

I moved the start point to a different part of the map on the same floor level as the actor, and now everything works fine.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 28, 2018, 3:15am UTC](https://forums.unrealengine.com/t/ai-patrol-failing/421072/22 "2018-03-28T03:15:04Z")

</div>

Nice! Silly issues sometimes haha Glad it’s working.

---

<div class="post-metadata">

**Author:** ![Aethryx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aethryx](https://forums.unrealengine.com/u/Aethryx)\
**Post date:** [March 30, 2018, 4:37am UTC](https://forums.unrealengine.com/t/ai-patrol-failing/421072/23 "2018-03-30T04:37:17Z")

</div>

I neglected to mention that my game is set up to stream multiple sub-levels in order to save resources. The area that this actor is meant to patrol in is a streamed level, and now starting from the beginning the AI Move To fails again when its level is loaded.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 30, 2018, 11:47am UTC](https://forums.unrealengine.com/t/ai-patrol-failing/421072/24 "2018-03-30T11:47:29Z")

</div>

Well that’s the problem right there! You can’t tell the AI to patrol to a point that doesn’t exist yet. If it isn’t streamed it’s not there so you’re always gonna get an error. All the points have to be in one level.

---

<div class="post-metadata">

**Author:** ![Aethryx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aethryx](https://forums.unrealengine.com/u/Aethryx)\
**Post date:** [March 30, 2018, 7:36pm UTC](https://forums.unrealengine.com/t/ai-patrol-failing/421072/25 "2018-03-30T19:36:03Z")

</div>

I moved the target points to the persistent level, and now the AI moves but frequently gets stuck in random areas for a while, then continues moving.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 30, 2018, 10:24pm UTC](https://forums.unrealengine.com/t/ai-patrol-failing/421072/26 "2018-03-30T22:24:27Z")

</div>

Well at least it is continuously moving now, AI does occasionally get “stuck” you would have to check those specific areas of your map and see what might be holding the AI up. Look at the blueprint during simulation and see where the path finding logic might be breaking down a bit and code a work around for the AI so if it can’t reach a point after 2 or 3 seconds select a new point etc.

[Previous page](https://forums.unrealengine.com/t/ai-patrol-failing/421072.md?page=1)
