So I’m trying to make a directional blocking system. And I’ve made a Aim Offset with all the animations for Up Down, Left and Right blocking. Now I’m trying to find out how to get the axis value for the Left and Right blocking. Up and Down blocking I got working, but the problem with Left and Right is that I got “Use Controller Rotation Yaw” enabled in playercharacter. This is required for the basic movement control scheme to work as I want. If I disable “Use Controller Rotation Yaw” the directional blocking works as intented, but my character doesn’t rotate with the camera yaw.
Here’s some of my code:
As you can see in the code I get the delta rotation between control rotation and Actor Rotation of my character. Since “Use Controller Rotation Pitch” is disabled in playercharacter, it nicely gives me the delta movement of my camera, so the Upper block and Down Block are working correctly.
But with the Yaw, since I have “Use Controller Roation Yaw” enabled, the character control rotation and actor rotation zero eachother out in the delta rotator. Because the character is moving together with the controller rotation.
How can I solve this problem? I need to somehow detect the movement of the camera in the last frames and get the delta so it gives me a negative to a positive value of the last cemera movement for the AimOffset Axis
Any ideas are most appreciated! Thanks in advance!