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"

Some questions about the worldLocation in the Blueprint

I get a problem when I try to get the player character's worldLocation, I used the get worldLocation node to do it. I found that in the beginning, everything is fine, but once I was blocked by something, If I still keep moving by pushing the keyboard, the worldLocation will keep changing in the axis which I'm going through instead of keeping the player character's real worldLocation. I don't know what's going on, I have tried it in the different version of the UE4, and get the same result. Did anyone know what's the problem and how to get the real worldLocation?

Product Version: UE 4.16
Tags:
more ▼

asked Jun 19 '17 at 02:47 AM in Using UE4

avatar image

Dust1989
1 1 1

avatar image Ninjin Jun 19 '17 at 09:42 AM

So you get your world location by get world location, but how do you make it move?

avatar image Dust1989 Jun 19 '17 at 01:50 PM

It's a thirdPerson mode, I just push the w key to move forward, and I used the get world location node to get the character's world location in every frame.

avatar image redbox Jun 19 '17 at 01:52 PM

It is better to use standard setup with AddMovementInput.

avatar image Ninjin Jun 19 '17 at 02:15 PM

"Blocked by something" This makes me curious. I actually started the ThirdPersonExampleMap and walked into a wall to check what's going on and I don't have any issues. So, is this also happening with your project or did you make some code changes that stop the player somehow? <3

avatar image Dust1989 Jun 19 '17 at 02:24 PM

https://mega.nz/#!FbInyAYZ!-J-cf0Sg7zfCyTSgD4P37vw46R8Ny_kCYjArseOUBNQ This is my project, It's a very simple project, would you please help me to see what's going on with it,

avatar image Dust1989 Jun 19 '17 at 02:00 PM

the input is Addmovementinput

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

1 answer: sort voted first

It will work in that way because you are not processing blocking by something.

For now its complicated to understand what you want to achieve, so I need some better explanation of why you need to set world location instead of using AddMovementInput.

more ▼

answered Jun 19 '17 at 09:13 AM

avatar image

redbox
2.3k 71 9 78

avatar image Dust1989 Jun 19 '17 at 01:58 PM

I didn't use it to set the world location, I just want to get the character's world location in real time, But when I move, sometimes I will hit somethings or struck by some other objects, Once it happens, the world location will be wrong, cause the value of the world location don't stop changing

(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