# Get World Location Not Returning Values

**URL:** <https://forums.unrealengine.com/t/get-world-location-not-returning-values/381841>\
**Category:** Community & Industry Discussion\
**Tags:** world, get, unreal-engine, not, question\
**Created:** [January 14, 2017, 3:35pm UTC](https://forums.unrealengine.com/t/get-world-location-not-returning-values/381841 "2017-01-14T15:35:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![siditious](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siditious](https://forums.unrealengine.com/u/siditious)\
**Post date:** [January 14, 2017, 3:35pm UTC](https://forums.unrealengine.com/t/get-world-location-not-returning-values/381841/1 "2017-01-14T15:35:13Z")

</div>

Hi there,

So I have written a c++ blueprint which I’m trying to call an actors world location into by using ‘Get World Location’. I’ve debugged the values by printing them all to the screen and for whatever reason ‘Get World Location’ seems to be returning 0 for all axis even though the pawn is for a fact not at (0,0,0). If I use Set World Location for the same pawn it seems to be working, but Get World Location does not. Is there something I am doing wrong here? In the screenshot below, my blueprint c++ function is literally just exchanging x to xx and y to yy and z to zz for debugging purposes. The class is static so I know it’s not an issue of a different class instance being created.  
Any help would be great.

 ![122022-screen+shot+2017-01-14+at+8.32.26+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/1/a71d7ab3bbabb9d4429f52c15f6b553fc4010860.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_23c91a471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_23c91a471](https://forums.unrealengine.com/u/anonymous_user_23c91a471)\
**Post date:** [January 14, 2017, 4:10pm UTC](https://forums.unrealengine.com/t/get-world-location-not-returning-values/381841/2 "2017-01-14T16:10:24Z")

</div>

Do you have root component ?

---

<div class="post-metadata">

**Author:** ![siditious](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siditious](https://forums.unrealengine.com/u/siditious)\
**Post date:** [January 14, 2017, 10:45pm UTC](https://forums.unrealengine.com/t/get-world-location-not-returning-values/381841/3 "2017-01-14T22:45:44Z")

</div>

No, would that make a difference? I’m trying to get location relative to the world not relative to actor origin.

---

<div class="post-metadata">

**Author:** ![siditious](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siditious](https://forums.unrealengine.com/u/siditious)\
**Post date:** [January 15, 2017, 2:35am UTC](https://forums.unrealengine.com/t/get-world-location-not-returning-values/381841/4 "2017-01-15T02:35:56Z")

</div>

I can confirm that it in fact does not make a difference.
