# AIMoveDirectly Towards Never Completes Task

**URL:** <https://forums.unrealengine.com/t/aimovedirectly-towards-never-completes-task/382477>\
**Category:** AI\
**Tags:** Behavior-Tree, bttask, unreal-engine, question\
**Created:** [January 20, 2017, 8:42pm UTC](https://forums.unrealengine.com/t/aimovedirectly-towards-never-completes-task/382477 "2017-01-20T20:42:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_aa2a7fa1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aa2a7fa1](https://forums.unrealengine.com/u/anonymous_user_aa2a7fa1)\
**Post date:** [January 20, 2017, 8:42pm UTC](https://forums.unrealengine.com/t/aimovedirectly-towards-never-completes-task/382477/1 "2017-01-20T20:42:00Z")

</div>

Hello all.

So this is my very simple behavior tree setup that uses MoveDirectlyToward until it gets close enough to its target.

 ![122927-bt1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/a/2dae33bb693a33a9ff5679222a1f47ca1445c232.png)

But once it reaches its target actor destination, the task seems to get stuck for some reason and never completes.

 ![122928-bt2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/9/b69929319c463519fe6cd71ff06d367116e1c474.png)

I’ve tried tinkering with multiple settings on the MoveDirectlyToward task, but nothing short of manually interrupting the task works (I.E. adding a 0.1 timer).

And in game, the AI character seems to have hit its target.

 ![122930-ingame.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/1/6912e0984dd48a3b237be0f3b0efb0a86a17036c.png)

Can anyone help me out with this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aa2a7fa1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aa2a7fa1](https://forums.unrealengine.com/u/anonymous_user_aa2a7fa1)\
**Post date:** [January 21, 2017, 12:14am UTC](https://forums.unrealengine.com/t/aimovedirectly-towards-never-completes-task/382477/2 "2017-01-21T00:14:28Z")

</div>

So referencing this thread: [Problems with BTTask\_MoveDirectlyToward - AI - Epic Developer Community Forums](https://answers.unrealengine.com/questions/145004/problems-with-bttask-movedirectlytoward.html)

I used the visual logger to see what’s going on when the AI character stops and it says that the move\_to operation finished:

 ![122978-screenshot+(12).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/e/d3eff7c25b95e2d0539ce174af55d657700b7269.png)
