# How do I reset the loop each time player exits the NavMesh

**URL:** <https://forums.unrealengine.com/t/how-do-i-reset-the-loop-each-time-player-exits-the-navmesh/1292504>\
**Category:** AI\
**Tags:** ai-navigation, Behavior-Tree, ai-controller, unreal-engine\
**Created:** [September 12, 2023, 4:21pm UTC](https://forums.unrealengine.com/t/how-do-i-reset-the-loop-each-time-player-exits-the-navmesh/1292504 "2023-09-12T16:21:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![time.lord.st](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@time.lord.st](https://forums.unrealengine.com/u/time.lord.st)\
**Post date:** [September 12, 2023, 4:22pm UTC](https://forums.unrealengine.com/t/how-do-i-reset-the-loop-each-time-player-exits-the-navmesh/1292504/1 "2023-09-12T16:22:00Z")

</div>

Hi.  
I’ve been trying to solve this issue where my AI won’t reset back to the ROAM AROUND once the playable character exits the NAVMESH.  
I’m really a beginner in AI and behaviour tree. Please help.

 ![Screenshot (529)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/3/db3e906253a28c73e1fd2723e5a9f516f3f3e6b4.png)

---

<div class="post-metadata">

**Author:** ![ElDudele](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldudele/32/749899_2.png) [@ElDudele](https://forums.unrealengine.com/u/ElDudele)\
**Post date:** [September 12, 2023, 6:37pm UTC](https://forums.unrealengine.com/t/how-do-i-reset-the-loop-each-time-player-exits-the-navmesh/1292504/2 "2023-09-12T18:37:47Z")

</div>

How does your “leave navmesh” check looks like? The second blackboard decorator needs to abort the tasks. Do you have finish executes with success inside of your BTTasks?

---

<div class="post-metadata">

**Author:** ![time.lord.st](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@time.lord.st](https://forums.unrealengine.com/u/time.lord.st)\
**Post date:** [September 13, 2023, 3:27pm UTC](https://forums.unrealengine.com/t/how-do-i-reset-the-loop-each-time-player-exits-the-navmesh/1292504/3 "2023-09-13T15:27:17Z")

</div>

i dont remember doing a LEAVE NAV MESH… and yes, i have execute with success inside of BTTasks  
it looks like this

 ![Screenshot (534)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/b/33b85def8a63d167f987f0098f779883bb2efefd.png)
