GetWorldLocation of TargetPoint does not work in standalone games

Ben_Cykyria
Wed, 18 Nov 2015 21:04:03 +0000
Community & Industry Discussion

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

it does still exist in 4.10!

is there a workaround?

5 posts - 1 participant