# BehaviorTree MoveTo - Dynamically set Acceptable Radius

**URL:** <https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948>\
**Category:** AI\
**Tags:** moveto, unreal-engine, Blueprint, question\
**Created:** [December 18, 2014, 4:24pm UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948 "2014-12-18T16:24:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DerMaddin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DerMaddin](https://forums.unrealengine.com/u/DerMaddin)\
**Post date:** [December 18, 2014, 4:24pm UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/1 "2014-12-18T16:24:16Z")

</div>

Hello there,

First of all let me tell you what I want to accomplish:  
I´m trying to develop a behavior for an rts-style game, where a unit attacks all enemy units in a path till it reaches the “headquarter” of the enemies and attacks this one.  
For now I want to implement an attack range for the unit. This means, is the next enemy at range, the unit should stop moving and attack the enemy instead.  
Edit: Thats what I have so far, detailed graphs shouldnt be necessary for the question tho, I guess.

 ![24411-bt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/8/fe86191e244bac8678bbcab078d43880f47cc106.png)

I found the Property “Acceptable Radius” for the “MoveTo” node, which basically tells the node when its ok to stop before the final destination is reached. As far as I experienced, it already consideres the bounds of the enemy. Thats the reason I would like to use it.  
The problem is, I haven´t found a way to change the “Acceptable Radius” dynamically, so different units could use the same BT, just by changing a variable in the BlueprintActor of the unit which then changes the “Acceptable Radius”.

So my question is: Is there a way to change the “Acceptable Radius” dynamically depending on the controlled Actor?

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [December 18, 2014, 5:46pm UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/2 "2014-12-18T17:46:39Z")

</div>

Not yet, at least not in Blueprints. But there will be in 4.8. Stay tuned.

In C++ it’s the usual way - derive from `BTTask_MoveTo` and instead of using `AcceptableRadius` call a function on your AI.

Cheers,

–mieszko

---

<div class="post-metadata">

**Author:** ![DerMaddin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DerMaddin](https://forums.unrealengine.com/u/DerMaddin)\
**Post date:** [December 18, 2014, 8:31pm UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/3 "2014-12-18T20:31:57Z")

</div>

Thank you! I will stay tuned.

---

<div class="post-metadata">

**Author:** ![Ghar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Post date:** [June 12, 2015, 4:25pm UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/4 "2015-06-12T16:25:31Z")

</div>

Was this implement in blueprints in 4.8? I don’t see it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4030fea0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4030fea0](https://forums.unrealengine.com/u/anonymous_user_4030fea0)\
**Post date:** [June 4, 2016, 7:55am UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/5 "2016-06-04T07:55:04Z")

</div>

Looks like this one dropped off from the radar. It’s not even in 4.11. Can someone at Epic put this back on the road-map?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4030fea0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4030fea0](https://forums.unrealengine.com/u/anonymous_user_4030fea0)\
**Post date:** [June 4, 2016, 8:14am UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/6 "2016-06-04T08:14:14Z")

</div>

Posting for those who might find this via Google Search.

 ![93279-snip.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/7/b970e77eedaa22c3a0d2497ff9e0c41d0fdf8ba5.png)

This seems to work - it achieves the same outcome.

May be that’s how it was implemented instead of overriding the `BTTask_MoveTo` task?

---

<div class="post-metadata">

**Author:** ![tancen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tancen](https://forums.unrealengine.com/u/tancen)\
**Post date:** [July 24, 2024, 4:46am UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/7 "2024-07-24T04:46:43Z")

</div>

This is not exactly the same as “MoveTo”, it lacks a very important function “ObserveBlackboardValue”, so it is better to implement a new “MoveTo” in C++

---

<div class="post-metadata">

**Author:** ![mugenmelon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mugenmelon/32/1035828_2.png) [@mugenmelon](https://forums.unrealengine.com/u/mugenmelon)\
**Post date:** [May 10, 2025, 1:19pm UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/8 "2025-05-10T13:19:18Z")

</div>

The MoveTo node now allows you to specify all of its options as a Blackboard Key instead, so you can configure a dynamic value in your Blackboard.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/0/7200edf23e4427f475a968deae4ea7f87812f3d6.png)

---

<div class="post-metadata">

**Author:** ![Fsyty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fsyty](https://forums.unrealengine.com/u/Fsyty)\
**Post date:** [May 20, 2025, 2:51pm UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/9 "2025-05-20T14:51:13Z")

</div>

How did you enable those Blackboard Key options ? it does not show for me

---

<div class="post-metadata">

**Author:** ![mugenmelon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mugenmelon/32/1035828_2.png) [@mugenmelon](https://forums.unrealengine.com/u/mugenmelon)\
**Post date:** [May 27, 2025, 7:52am UTC](https://forums.unrealengine.com/t/behaviortree-moveto-dynamically-set-acceptable-radius/301948/10 "2025-05-27T07:52:49Z")

</div>

Depends on your version, it’s relatively new in UE5.5 I believe
