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"

Get World Location Not Returning Values

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.

alt text

Product Version: UE 4.14
Tags:
more ▼

asked Jan 14 '17 at 03:35 PM in Blueprint Scripting

avatar image

siditious
45 9 15 16

avatar image Mlody "Swidwin" Jan 14 '17 at 04:10 PM

Do you have root component ?

avatar image siditious Jan 14 '17 at 10:45 PM

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

avatar image siditious Jan 15 '17 at 02:35 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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