How do I play camera shake or tilt camera when player moves to his left or right?

Hello, I need help making the camera tilt or shake when moving left or right. My attempt consisted of making an actor component that took the owner’s velocity but the problem is the Get Velocity returns the velocity on the world scale, meaning if I face different directions, my “left” or “right” movement is on an other axis. I don’t know how I can get velocity that is relative to the Owner.

I was able to determine whether the player was moving left or right with this:
image
But I don’t know how to actually rotate the camera.

The player camera is part of the 1st or 3rd person actor so you can make a reference to this such that you can make transforms and rotations on the camera to simulate the movement behavior as you desire…

I dont know why, but the camera doesn’t rotate and I’ve tried multiple ways. I can change the location of the camera but the camera doesn’t rotate.

Maybe share your code/BP? I cannot explain. I haven’t rotated the camera; however, for other things AddLocalRotation has worked for me… …for example, I had multiple gun assets and one spawner and use AddLocalRotation to correctly position each gun in the correct orientation on the spawner… …is this a single player or multiplayer game? Maybe there is some replication issue???