# AI PATROLS AND CHASES BUT GETS STUCK IN PLACE AFTER LOOSING SIGHT 

**URL:** <https://forums.unrealengine.com/t/ai-patrols-and-chases-but-gets-stuck-in-place-after-loosing-sight/2458341>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [April 15, 2025, 4:08pm UTC](https://forums.unrealengine.com/t/ai-patrols-and-chases-but-gets-stuck-in-place-after-loosing-sight/2458341 "2025-04-15T16:08:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crispy95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crispy95](https://forums.unrealengine.com/u/Crispy95)\
**Post date:** [April 15, 2025, 4:08pm UTC](https://forums.unrealengine.com/t/ai-patrols-and-chases-but-gets-stuck-in-place-after-loosing-sight/2458341/1 "2025-04-15T16:08:02Z")

</div>

I have set up AI to patrol randomly and chase the player when seen, But when i loose sight of the AI, it just stand there and wont go back to patrolling or even chase the player again. Any ideas?

 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/1/8d1c51420efcc34a2a8955fe7b7d524a4714b6fa.png)  
 ![Capture2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/3/ea34f53b20bb42bd7f77afb2f9fb48a7a8a3e51e.png)  
 ![Captureroamaround](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/3/303c12e5c198cf690d64258db1fe0d22c5e51720.png)

---

<div class="post-metadata">

**Author:** ![Crispy95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crispy95](https://forums.unrealengine.com/u/Crispy95)\
**Post date:** [April 15, 2025, 4:38pm UTC](https://forums.unrealengine.com/t/ai-patrols-and-chases-but-gets-stuck-in-place-after-loosing-sight/2458341/2 "2025-04-15T16:38:33Z")

</div>

![Capturebehaviourtree](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/8/bf8324d0e62d0edbbc1a023e810f5934aae8fb51.png)  
Behavior Tree, It wont let me upload to original post..

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [April 15, 2025, 6:20pm UTC](https://forums.unrealengine.com/t/ai-patrols-and-chases-but-gets-stuck-in-place-after-loosing-sight/2458341/3 "2025-04-15T18:20:13Z")

</div>

Hey @Crispy95!

Make sure to have a `Finish Execute` node with it’s Success pin checked at the end of the execution chain in your task named “BTTask\_Chaseplayer”.

You can also Alt + Tab into the Behavior Tree in runtime to observe the execution flow. I suspect it’s not reaching to your sequence named “Look Around”, in which case you won’t see it having a yellow outline.

Additionally, you can debug further by hitting apostrophe (') in runtime to open up the AI debugger. That key might not work for Non-English keyboards though, you can rebind the `Activation Key` from Edit \> Project Settings \> Engine \> Gameplay Debugger \> Input.

Hope these help! 😇
