Rotate actor in Z without altering X&Y?

I have a blueprint that let’s me rotate an actor in any direction, the problem is when I rotate around Z axis for example 90 degrees my X axis is displaced 90 degrees meaning my X axis is where my Y axis should be and now when I want to rotate around my X axis my controllers are inverted X is Y and vice versa, I’m using set rotation for all the movements, I also tried add actor rotation and set relative rotation but none of them give me the results I want. Thanks in advance to anyone who reads this.

to solve this, you can add a “dummy” in your hierachy, so when you rotate your object on Z , you can keep the original pivot for rotating on X and Y using the parent object.
in fact it s a bit like using a dummy for a subanim
hope it s clear enough.