# GetWorldLocation of TargetPoint does not work in standalone games

**URL:** <https://forums.unrealengine.com/t/getworldlocation-of-targetpoint-does-not-work-in-standalone-games/338954>\
**Category:** Community & Industry Discussion\
**Tags:** target-point, bug, unreal-engine, bug-report, standalone, question\
**Created:** [November 18, 2015, 9:04pm UTC](https://forums.unrealengine.com/t/getworldlocation-of-targetpoint-does-not-work-in-standalone-games/338954 "2015-11-18T21:04:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Cykyria](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ben_cykyria/32/700751_2.png) [@Ben\_Cykyria](https://forums.unrealengine.com/u/Ben_Cykyria)\
**Post date:** [November 18, 2015, 9:04pm UTC](https://forums.unrealengine.com/t/getworldlocation-of-targetpoint-does-not-work-in-standalone-games/338954/1 "2015-11-18T21:04:03Z")

</div>

GetWorldLocation does not return coordinates in packaged games or standalone editor mode.

Reproduce:

Make blank 4.10 game. Place TargetPoint in level. Reference in Blueprint, drag pint out, GetWorldLocation, Print this.

Results:

Play “Selected Viwwport(PIE)”: returns coordinates

Play “New Editor Widnows(PIE)”: returns coordinates

Play “Standalone Game”: returns 0,0,0

Returns also 0,0,0 in packaged games.

This bug was reported long ago here: [Targetpoint world location - Programming & Scripting - Unreal Engine Forums](https://answers.unrealengine.com/questions/70953/targetpoint-world-location.html)

it does still exist in 4.10!

is there a workaround?

---

<div class="post-metadata">

**Author:** ![Ben\_Cykyria](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ben_cykyria/32/700751_2.png) [@Ben\_Cykyria](https://forums.unrealengine.com/u/Ben_Cykyria)\
**Post date:** [November 18, 2015, 9:05pm UTC](https://forums.unrealengine.com/t/getworldlocation-of-targetpoint-does-not-work-in-standalone-games/338954/2 "2015-11-18T21:05:04Z")

</div>

![67303-targetpointbug.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/4/e2481da3e65a6dbc5c657a887357da9d6fa4471a.jpeg)

---

<div class="post-metadata">

**Author:** ![Ben\_Cykyria](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ben_cykyria/32/700751_2.png) [@Ben\_Cykyria](https://forums.unrealengine.com/u/Ben_Cykyria)\
**Post date:** [November 18, 2015, 9:33pm UTC](https://forums.unrealengine.com/t/getworldlocation-of-targetpoint-does-not-work-in-standalone-games/338954/3 "2015-11-18T21:33:40Z")

</div>

Ok, to answer my own question: despite the blueprint “context” offering you the location of the sprite component, you have to use the “get actor location” of the target point (see new screenshot).

I see why the sprite will be left out in packaged build. but the default context for “location” of a TargetPoint should not offer you the sprite component’s location then.

 ![67307-targetpointbug.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/9/4492741ca30548eb0ec6eaa172ffaff9811731fc.jpeg)

---

<div class="post-metadata">

**Author:** ![lighterbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lighterbox](https://forums.unrealengine.com/u/lighterbox)\
**Post date:** [August 25, 2017, 2:35pm UTC](https://forums.unrealengine.com/t/getworldlocation-of-targetpoint-does-not-work-in-standalone-games/338954/4 "2017-08-25T14:35:40Z")

</div>

I can’t believe this bug still exists in 4.16!  
Great catch by the way. Almost hit the panic button on this issue.

---

<div class="post-metadata">

**Author:** ![Clifford\_Sage](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clifford_sage/32/498909_2.png) [@Clifford\_Sage](https://forums.unrealengine.com/u/Clifford_Sage)\
**Post date:** [December 19, 2018, 9:48pm UTC](https://forums.unrealengine.com/t/getworldlocation-of-targetpoint-does-not-work-in-standalone-games/338954/5 "2018-12-19T21:48:30Z")

</div>

Thanks so much, had exactly the same GetWorldLocation of sprite problem (4.20), nearly started deleting my Intermediate folder.
