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"

Rotate player direction without using "use controller rotation YAW"?

Hi, I'm working on a fixed camera third person game (like resident evil 1, 2, 3). Does anyone know of a way to rotate the player character using Input Axis Move Right, without setting "use controller desired rotation" to true? To explain, I have it set up so that if the player will move in tank controls if the player is aiming a gun. But because I need to "use controller desired rotation" to make them rotate with Input Right Axis the player always snaps to the rotation of the fixed camera's direction. I need the player to stay in it's current facing direction and still have the ability to rotate to the left or right.

Thanks!

Product Version: UE 4.21
Tags:
more ▼

asked May 17 '19 at 09:02 PM in Blueprint Scripting

avatar image

bathorysthroat
17 4 6 11

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

1 answer: sort voted first

Something like this should work.

I've used mouse input but you can set this up as whatever axis you want. This will rotate the entire actor by a speed you can adjust by changing the value of the RotationSpeed variable by adding a certain amount to the rotation it is already at.

Hope this helps.

alt text

more ▼

answered May 19 '19 at 01:47 AM

avatar image

OneViGOR
33 1 4

avatar image bathorysthroat May 19 '19 at 02:21 AM

Yes! Thank you so much! This totally got it!

avatar image OneViGOR May 19 '19 at 02:25 AM

No worries. Glad it's what you were looking for. :)

(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