# How to properly use a Service Node to update a "MoveTo" node?

**URL:** <https://forums.unrealengine.com/t/how-to-properly-use-a-service-node-to-update-a-moveto-node/491981>\
**Category:** AI\
**Tags:** artificial-intellige, unreal-engine, question, Blueprint, UE4-27\
**Created:** [January 27, 2022, 4:00pm UTC](https://forums.unrealengine.com/t/how-to-properly-use-a-service-node-to-update-a-moveto-node/491981 "2022-01-27T16:00:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaahel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaahel](https://forums.unrealengine.com/u/Vaahel)\
**Post date:** [January 27, 2022, 4:00pm UTC](https://forums.unrealengine.com/t/how-to-properly-use-a-service-node-to-update-a-moveto-node/491981/1 "2022-01-27T16:00:43Z")

</div>

Hey guys, I’m trying to use a service node for the first time and I’m having some problems with it.  
I’m using a “move to” node to move a pawn to a position occupied by the player, but I want to update this position every so often.

This is the fist version I’ve tried:

 ![v1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/1/0c1fe4aa1483678e1bf17dbd940369e1e53b1365.png)

And I’ve also tried this:

 ![v2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/1/a81e9ef91fd5d45911e9ab87d71f86662225534e.png)

And this is how the Behaviour Tree looks like:

 ![bt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/c/ffc2df62c8fa43f32b3049eee9a4af2cdfd60c09.png)

Can someone tell me where I’m wrong with my implementation? Thanks!

---

<div class="post-metadata">

**Author:** ![overreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@overreal](https://forums.unrealengine.com/u/overreal)\
**Post date:** [January 30, 2022, 7:01am UTC](https://forums.unrealengine.com/t/how-to-properly-use-a-service-node-to-update-a-moveto-node/491981/2 "2022-01-30T07:01:09Z")

</div>

Make your own custom MoveTo Task, and you will notice it is only called once, not every frame. You have to use a Decorator with OnValueChanged on PatrolLocation on MoveTo task.

---

<div class="post-metadata">

**Author:** ![Vaahel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaahel](https://forums.unrealengine.com/u/Vaahel)\
**Post date:** [February 2, 2022, 4:44pm UTC](https://forums.unrealengine.com/t/how-to-properly-use-a-service-node-to-update-a-moveto-node/491981/3 "2022-02-02T16:44:08Z")

</div>

I finally had the opportunity to try today and it works! I wasn’t thinking that MoveTo is only called once and not every frame. Using the decorator on the MoveTo works perfectly, Thanks!
