# Getting AI to interrupt/abort Behavior Tree MoveTo Task

**URL:** <https://forums.unrealengine.com/t/getting-ai-to-interrupt-abort-behavior-tree-moveto-task/306919>\
**Category:** AI\
**Tags:** moveto, behavior-tree-task, decorator, unreal-engine, question\
**Created:** [February 14, 2015, 6:37am UTC](https://forums.unrealengine.com/t/getting-ai-to-interrupt-abort-behavior-tree-moveto-task/306919 "2015-02-14T06:37:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Kilrogg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kilrogg](https://forums.unrealengine.com/u/Kilrogg)\
**Post date:** [February 14, 2015, 7:45pm UTC](https://forums.unrealengine.com/t/getting-ai-to-interrupt-abort-behavior-tree-moveto-task/306919/2 "2015-02-14T19:45:06Z")

</div>

You will need a different way than a decorator to constantly check if the player is close to your AI. What you could try is:

1 - Turn your first MoveTo node into a Simple Parallel

2 - Make your MoveTo the main task of the parallel

3 - Make the background task of the parallel a selector with no children that loops forever and has a cone check that aborts both.

I don’t know if having no children under the selector would be problematic, but it should be easy to try.

 ![29984-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/8/7784a543e21227ffbf8245ba396d730e927243fe.png)

---

_[View the full topic](https://forums.unrealengine.com/t/getting-ai-to-interrupt-abort-behavior-tree-moveto-task/306919)._
