GetWorldLocation of TargetPoint does not work in standalone games
GetWorldLocation does not return coordinates in packaged games or standalone editor mode.
Make blank 4.10 game. Place TargetPoint in level. Reference in Blueprint, drag pint out, GetWorldLocation, Print this.
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: https://answers.unrealengine.com/questions/70953/targetpoint-world-location.html
it does still exist in 4.10!
is there a workaround?
asked Nov 18 '15 at 09:04 PM in Bug Reports
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.
answered Nov 18 '15 at 09:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here