Strafe move character leff/right based on character rotation, not on camera rotation.

I want to be able to move my character left/right, no matter what direction the camera is facing. I can’t find this anywhere. Can someone give me some pointers?
For clarification I’m taking about strafing, not rotating.

As it is now, I can strafe based on camera direction but not based on character direction

you can get the direction from an inbuilt function GetActorRightVector and multiple it by your input

When you say “multiply by your input” do you mean multiply with ‘action value X’ for example?

yes so just as you have likely have AddMovementInput on the actorforwardvector when you press forward and back, do it for the right vector for left and right

I think that’s how it’s setup now already.
Or I’m not understanding you correctly.

tried it with the get actor right vector too but it just makes my character spin around

dont use control rotation, there is a GetActorRightVector which will be independant of where you’re looking

oh right, it works! I forgot that I checked orient rotation to movement while testing stuff. Thanks!