# Behaviour Tree stuck in "Move To" in sequence

**URL:** <https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688>\
**Category:** Cinematics & Media\
**Tags:** stuck, Behavior-Tree, move-to, freezes, unreal-engine, question\
**Created:** [December 17, 2015, 3:29am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688 "2015-12-17T03:29:26Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2befae651](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2befae651](https://forums.unrealengine.com/u/anonymous_user_2befae651)\
**Post date:** [December 17, 2015, 3:29am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/1 "2015-12-17T03:29:26Z")

</div>

Hello,

I have been following tutorial series, but got stuck on video: [- YouTube](https://www.youtube.com/watch?v=qGYvGsakJPk)

I have had happen before as well when not using tutorial, but essentially the Move To node of a behaviour tree NEVER EXITS. It gets stuck.

Here’s is my problem shown in video:

I am debug drawing a sphere equal to the size I am checking.

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_650f1d25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_650f1d25](https://forums.unrealengine.com/u/anonymous_user_650f1d25)\
**Post date:** [December 17, 2015, 3:42am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/2 "2015-12-17T03:42:17Z")

</div>

I’m having a problem with , too.  
I’m running v. 4.10.1 and I’d like to think there’s a problem with Move To function, too. (Though I’ve double, triple-checked, I may be doing something wrong.)

The author of the tutorial, Asher, was running version 4.8 or earlier it looks like. 3 or 4 other people are/were running into same problem. One user got around the problem by force creating and deleting his own actor in lieu of using the Target Point.

The only notable difference between the tutorial and my project is that I had to use Get Random Point in Navigable Radius because Get Random Point didn’t exist. I uploaded my AI data files and character meshes if anyone’s interested in finding the culprit.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_650f1d25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_650f1d25](https://forums.unrealengine.com/u/anonymous_user_650f1d25)\
**Post date:** [December 24, 2015, 10:10am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/3 "2015-12-24T10:10:35Z")

</div>

Hey Squallfish, I just found something that seems related.

> **[How to stop AI MoveTo on blackboard based condition change](https://forums.unrealengine.com/questions/234411/how-to-stop-ai-moveto-on-blackboard-based-conditio.html)**
>
> Hi, i got a simple AI setup, but I have the problem to instantly stop AI moving after switching state in Search BTT (after the AI seen player and within the search radius i’ve set). It always required the Patrol BTT on finish execute success before...

Therein MieszkoZ talks about usage tips for MoveTo. Seeing that, I ended up creating my own BT tasks (based on WanderToPoint) for the MoveTos in the search and combat states. I’m now getting better results than I got using the code MoveTo by itself. It’s still buggy and it’s tedious to set up.

Over half a year ago MieszkoZ said he filed for a feature to abort a move to via BP. He also listed a couple other workarounds.

---

<div class="post-metadata">

**Author:** ![wuzzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wuzzy](https://forums.unrealengine.com/u/wuzzy)\
**Post date:** [December 26, 2015, 12:19pm UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/4 "2015-12-26T12:19:05Z")

</div>

Hi just had a similar issue having ported a solution up from 4.8 MoveTo was never completing.

It looks like it is never getting the notification message for the MoveComplete.

Looking at the engine source there are two implementations of the MoveTo Logic, one uses an AITask to handle the completion and the other uses WaitForMessage. see:

**\4.10\Engine\Source\Runtime\AIModule\Private\BehaviorTree\Tasks\BTTask\_MoveTo.cpp**

I found that for my code, the second approach never seemed to trigger, but the first approach works as advertised. It’s controlled by a flag in:

**Project Settings \> AI System \> EnableBTAITasks**

The comment indicates is a transitional flag, the AITask mechanic is the ‘new’ way and will become the default.

Hope helps!

More documentation around stuff would be nice, but I guess it’s a work in progress!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2befae651](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2befae651](https://forums.unrealengine.com/u/anonymous_user_2befae651)\
**Post date:** [December 27, 2015, 1:18am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/5 "2015-12-27T01:18:53Z")

</div>

Thanks so much! That did it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2befae651](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2befae651](https://forums.unrealengine.com/u/anonymous_user_2befae651)\
**Post date:** [December 27, 2015, 1:19am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/6 "2015-12-27T01:19:47Z")

</div>

Thanks for looking into so deeply 😃 I appreciate it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_650f1d25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_650f1d25](https://forums.unrealengine.com/u/anonymous_user_650f1d25)\
**Post date:** [December 28, 2015, 1:49am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/7 "2015-12-28T01:49:16Z")

</div>

totally helps. Thanks a lot, wuzzy.  
Just a note: I had to revert all my custom BT move to tasks (that were doing finish execute on move complete). They never worked well anyway…

Having checked EnableBTAITasks the basic MoveTo task completes properly.

I hope you don’t mind I shared information on the pertinent youtube tutorial here: [- YouTube](https://www.youtube.com/watch?v=qGYvGsakJPk)

---

<div class="post-metadata">

**Author:** ![Doodoopeepee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doodoopeepee](https://forums.unrealengine.com/u/Doodoopeepee)\
**Post date:** [February 17, 2016, 4:22am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/8 "2016-02-17T04:22:42Z")

</div>

AHHH! Thank you so much for . Checking EnableBTAITasks fixed it for me. I overloaded OnMoveComplete to add in some debug feedback, and was seeing that it completed but my BT would just sit on any MoveTo I had.

Thanks again!

---

<div class="post-metadata">

**Author:** ![Copenhagenjazz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Copenhagenjazz](https://forums.unrealengine.com/u/Copenhagenjazz)\
**Post date:** [July 23, 2016, 7:04pm UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/9 "2016-07-23T19:04:56Z")

</div>

Hmm I am going through the same tutorial and checking EnableBTAITasks didnt make my Move To Tasks complete ☹ I can add a Force Success decorator but thats a hack.

I am on UE4.12.

Is solution working for anyone else?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f778cf8f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f778cf8f](https://forums.unrealengine.com/u/anonymous_user_f778cf8f)\
**Post date:** [July 28, 2016, 12:19am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/10 "2016-07-28T00:19:26Z")

</div>

Also still experiencing bug in 4.12. It’s a bummer of a bug because it’s not very obvious what’s causing it! Thank jeebus I found thread. ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24bc1518](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24bc1518](https://forums.unrealengine.com/u/anonymous_user_24bc1518)\
**Post date:** [October 7, 2016, 9:59am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/11 "2016-10-07T09:59:02Z")

</div>

Since I have encountered the same problem and the solution by force sucsess is not exactly what I wanted to have, I debugged a bit further and ended up coming to the solution that when the checkbox “Track Moving Goal” is unchecked the problem no longer occurs. I guess it has something to do with re-setting the location of the actor, but that’s just speculation. All in all uncheck “Track Moving Goal” and it works at least for me again as it should.

 ![109966-ai_moveto.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/e/fbe87e16104234421b0705540eec8271e96c6432.png)

---

<div class="post-metadata">

**Author:** ![jstzwd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jstzwd](https://forums.unrealengine.com/u/jstzwd)\
**Post date:** [October 16, 2016, 3:07am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/12 "2016-10-16T03:07:56Z")

</div>

Hey wuzzy, thanks for pointing out.

It worked for half of my Move To tasks… The thing is, my newly created Move To task no longer stuck with option checked, means they are using the first implementation as you suggested? But my old Move To task which I created at 4.9 version time will go into stuck status after I checked option, and will not happen if I leave it unchecked. means the old ones are using the second implementation(WaitForMessage)?

I am so confused, if you have any idea please let me know thank you so much!

---

<div class="post-metadata">

**Author:** ![Kanteh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanteh](https://forums.unrealengine.com/u/Kanteh)\
**Post date:** [September 18, 2018, 1:47pm UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/13 "2018-09-18T13:47:37Z")

</div>

solved it for me:

Project Settings \> AI System \> EnableBTAITasks

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [September 19, 2020, 10:41am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/14 "2020-09-19T10:41:22Z")

</div>

not helping if problem comes with a moveto based on location

---

<div class="post-metadata">

**Author:** ![RakeshBMonkie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RakeshBMonkie](https://forums.unrealengine.com/u/RakeshBMonkie)\
**Post date:** [March 27, 2023, 7:46am UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/15 "2023-03-27T07:46:32Z")

</div>

I Have encountered similar problem, As you mentioned unchecking the “Track Moving Goal” has worked for me too but i need that option as in my case the goal is keep changing.

The solution what worked for me is to make the Z value less than 100 as mentioned in post:

> **[Pathfinding issue causing delays between waypoints](https://community.gamedev.tv/t/pathfinding-issue-causing-delays-between-waypoints/18421)**
>
> Sorry in advance for the long post … this is about an issue I was having and how I went about trouble shooting it. It was a useful exercise, so I figured I’d share and hopefully someone else will save some time on their journey if they run into...

---

<div class="post-metadata">

**Author:** ![ducthao3131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ducthao3131](https://forums.unrealengine.com/u/ducthao3131)\
**Post date:** [May 14, 2023, 2:13pm UTC](https://forums.unrealengine.com/t/behaviour-tree-stuck-in-move-to-in-sequence/341688/16 "2023-05-14T14:13:55Z")

</div>

Thanks wuzzy . I’m so frustrated for 2 days until i find this post . Totally a live saver
