3rd person ADS controls player rotation when not moving (using WASD)

Hello, I’ve been at it for 2 days now and I can not seem to find a solution to my problem.

Here’s the order of my problem:

  1. When player is not moving (using WASD), the camera can look freely around the player (That’s good)
  2. When player is moving, the camera controls player rotation (That’s good)
  3. When player is ADSing and not moving (not using WASD) the camera is looking around the player freely, like for point 1. (That’s bad)
    4.When player is ADSing and moving, the camera controls player rotation (That’s good)

I have a separate bool for “aiming?”. Is there a way to change it so camera rotates the player around while ADSing and it can still look around freely while not?

I started with the basic 3rd person character blueprint.

Component settings I have set:

Camera Boom:
‘Use Pawn Control Rotation = True’

Follow Camera:
‘Use Pawn Contol Rotation = False’

Movement Component:
‘Orient Rotation to Movement = True’
‘Use Controller Desired Rotation = False’


Hey I figured it out!

This is the code i added to my Camera Input.