x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

GetWorldLocation of TargetPoint does not work in standalone games

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: https://answers.unrealengine.com/questions/70953/targetpoint-world-location.html

it does still exist in 4.10!

is there a workaround?

Product Version: UE 4.10
Tags:
more ▼

asked Nov 18 '15 at 09:04 PM in Bug Reports

avatar image

Ben_Cykyria
337 22 28 39

avatar image Ben_Cykyria Nov 18 '15 at 09:05 PM

alt text

targetpointbug.jpg (307.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

alt text

targetpointbug.jpg (327.8 kB)
more ▼

answered Nov 18 '15 at 09:33 PM

avatar image

Ben_Cykyria
337 22 28 39

avatar image lighterbox Aug 25 '17 at 02:35 PM

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

avatar image Clifford Sage Dec 19 '18 at 09:48 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question