# Help! How can I get the AI actor location from my Animation Blueprint?

**URL:** <https://forums.unrealengine.com/t/help-how-can-i-get-the-ai-actor-location-from-my-animation-blueprint/468575>\
**Category:** Editor Scripting\
**Tags:** reference, cast-to, actor-location, unreal-engine, question\
**Created:** [July 23, 2020, 4:26pm UTC](https://forums.unrealengine.com/t/help-how-can-i-get-the-ai-actor-location-from-my-animation-blueprint/468575 "2020-07-23T16:26:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UraniumBonBeurre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UraniumBonBeurre](https://forums.unrealengine.com/u/UraniumBonBeurre)\
**Post date:** [July 23, 2020, 4:26pm UTC](https://forums.unrealengine.com/t/help-how-can-i-get-the-ai-actor-location-from-my-animation-blueprint/468575/1 "2020-07-23T16:26:52Z")

</div>

I tried several things like “cast to”, etc… but none of them is working. It says there are errors… Any suggestions ?

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [July 23, 2020, 8:23pm UTC](https://forums.unrealengine.com/t/help-how-can-i-get-the-ai-actor-location-from-my-animation-blueprint/468575/2 "2020-07-23T20:23:48Z")

</div>

![307961-loc.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/d/11db3dfb4eb9674ce53f1c64733bfd614aa4a442.png)

---

<div class="post-metadata">

**Author:** ![UraniumBonBeurre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UraniumBonBeurre](https://forums.unrealengine.com/u/UraniumBonBeurre)\
**Post date:** [July 23, 2020, 8:44pm UTC](https://forums.unrealengine.com/t/help-how-can-i-get-the-ai-actor-location-from-my-animation-blueprint/468575/3 "2020-07-23T20:44:09Z")

</div>

Thx a lot! Didn’t know about this function 😉
