How can I OrientRotationToPlayerMovement unless character is aiming w/Right Analog stick/mouse? (fixed isometric camera)

I am currently 3 months into learning UE5 so I will try and word this as best I can. I’m trying to make an isometric style survival game for mobile (fixed camera). I have set up the camera, basic locomotion, weapon equip, and have ticked ‘Orient Rotation to Movement’, and am happy with the way my character is moving around, and looking in the direction he is moving (configured to WASD). I am trying to make it so that when I move the right analog stick/mouse, he continues moving in the direction of WASD but his rotation is now controlled by the right stick/mouse (as this will be how the player aims). When the character is finished aiming/shooting i want him to enter back into “Orient Rotation to Player movement”. I hope this makes sense. Please link an explanation if you can find one or let me know if I am going about this the wrong way. Thanks :slight_smile:

Are you using enhanced input?

If so, for the right stick, it should simply be a matter of dragging on the Started pin of right stick input event, and setting OrientRotationToMovement to false and UseControlDesiredRotation to true on the char move component. Then from the triggered pin calculate the look direction from the stick, and set control rotation to match. To go back to normal, set the bools mentioned above back to how they were using the completed pin.

Mouse will be slightly more complicated, as you’ll probably want a branch somewhere checking the axis values to filter tiny movements/drift, but otherwise it should be basically the same.

Thank you I think this worked, cheers :slight_smile: