Control Rotation and Camera

I am new to UE4.

I am trying to make my own 3P Camera where the camera will have free look and when the player moves, he will first rotate to the camera and then move to the directions (kind of how the basic 3P game camera works, but different in the technical side).

So the free look works fine, but the problem is to align the player to the camera spring’s yaw. It doesn’t work and bring funny results (infinitely turning).

Here is the blueprints:

(Please see: The Rotate Camera Spring Yaw / Pitch is simply rotating the camera using Get/SetWorldRotation but limiting the rotation to a certain degree so the camera will not be rotated upside down, etc… the functions are working as intended)



The Sync Player Dir function

Big thanks in advance!