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"

How can I, when player is moving, make mouse movement turn player + camera, but otherwise, only turn the camera?

EDIT: Rephrasing all of this because, as much as I appreciate the help, neither of the below solutions worked and the original post was poorly worded.. Original post below horizontal divider.

What I'm trying to do is set up a script that essentially says: If the player is moving, make the moving of the mouse dictate the direction of the camera AND direction of the player, but if the player is NOT moving, make the moving of the mouse dictate ONLY the direction of the camera, and not turn the player. Here's the settings on the character element, the spring arm and the camera.

alt text alt text alt text

I really don't have any clue how to execute this properly, so some pointers would be great!

So, right to the chase: I'm trying to make a third person game, in which the player can use their mouse to look freely 360 degrees around them. I've accomplished this, BUT, the only problem is that the player character is locked at a 0 degree orientation. Here's the blueprint for the freelooking: Removed

And that worked, at least for freelooking. What I can't figure out how to do is to make it so that when the character is moving, he turns and moves in the direction the camera faces. I tried this, but to no avail: Removed

Anyone have any idea how to do what I'm trying to do?

Product Version: UE 4.19
index.png (133.0 kB)
more ▼

asked Apr 03 '18 at 11:54 PM in Blueprint Scripting

avatar image

1 1 3

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

1 answer: sort voted first

Pretty sure this is all you need to look at and make sure this is checked. There is also a similar setting in the controller. Check the boxes for one of them to make sure they use the other's rotation so they are synchronized. Or the second image is prob what you need since you want the functionality split between movement types. alt text alt text

more ▼

answered Apr 04 '18 at 03:26 AM

avatar image

Nebula Games Inc
5.4k 28 9 15

avatar image Nebula Games Inc Apr 04 '18 at 03:37 AM

You would need to get control rotation (of controller) and break its rot and add the yaw input axis pin to it then re-make the rot and feed that into the set actor rotation, which would execute off your "true" branch during player movement.

(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