# Trouble Getting Actor Location to Update in Behavior Tree?

**URL:** <https://forums.unrealengine.com/t/trouble-getting-actor-location-to-update-in-behavior-tree/306294>\
**Category:** Blueprint\
**Tags:** actor-location, unreal-engine, update, Blueprint, question\
**Created:** [February 7, 2015, 10:59pm UTC](https://forums.unrealengine.com/t/trouble-getting-actor-location-to-update-in-behavior-tree/306294 "2015-02-07T22:59:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Megamansalzar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Megamansalzar](https://forums.unrealengine.com/u/Megamansalzar)\
**Post date:** [February 7, 2015, 10:59pm UTC](https://forums.unrealengine.com/t/trouble-getting-actor-location-to-update-in-behavior-tree/306294/1 "2015-02-07T22:59:55Z")

</div>

So, I want to be able to see where the actor is, and if it’s within certain areas, there’s a possibility that, for example, he’ll walk up to a counter and wait for a bit, or stand next to a table. The problem is, I’m able to get the Actor Location and store it in a Blackboard variable, but despite running a service to get the location at several points in the BT, I only ever get the spawn location. Any idea why this might be happening? I’ve been looking all over for a solution, but everything that I’ve seen either hasn’t work, or is over my head. Any help is appreciated!

---

<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:** [February 9, 2015, 11:54am UTC](https://forums.unrealengine.com/t/trouble-getting-actor-location-to-update-in-behavior-tree/306294/2 "2015-02-09T11:54:52Z")

</div>

Make you’re you’re fetching controlled pawn’s location, not controller’s. A common mistake, which basically makes it a design flaw on our end. We’re looking for a proper fix, but for now don’t use controller’s location - you’ll always end up getting spawn location.

Cheers,

–mieszko

---

<div class="post-metadata">

**Author:** ![Megamansalzar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Megamansalzar](https://forums.unrealengine.com/u/Megamansalzar)\
**Post date:** [February 9, 2015, 9:46pm UTC](https://forums.unrealengine.com/t/trouble-getting-actor-location-to-update-in-behavior-tree/306294/3 "2015-02-09T21:46:12Z")

</div>

Oh! That fixed it! Thank you so much!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17ca20e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17ca20e6](https://forums.unrealengine.com/u/anonymous_user_17ca20e6)\
**Post date:** [July 3, 2016, 3:33am UTC](https://forums.unrealengine.com/t/trouble-getting-actor-location-to-update-in-behavior-tree/306294/4 "2016-07-03T03:33:22Z")

</div>

related:

> **[How to update bot location in behaviour tree?](https://forums.unrealengine.com/questions/144566/how-to-update-bot-location-in-behaviour-tree.html)**
>
> I am trying to choose a target for the bot to move to by checking path length between bot and a targets of same class, but it’s not working. It seems bot location is not updating during the game, so when I ask for actor location it always give...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3e08632f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3e08632f](https://forums.unrealengine.com/u/anonymous_user_3e08632f)\
**Post date:** [May 8, 2017, 6:42am UTC](https://forums.unrealengine.com/t/trouble-getting-actor-location-to-update-in-behavior-tree/306294/5 "2017-05-08T06:42:31Z")

</div>

oh wow… you saved my life !  
Thank you.! ! ! !
