How do i ignore parent yaw rotation in tank turret?

I have a tank and a turret attached to the tank. When the tank rotates the turret should not. I have seen a couple unanswered questions about the same thing. Does anyone know?

SOLUTION:

SetAbsolute(), which takes 3 booleans: 1 for location, rotation and scale
SetAbsolute(false, true, false) works for the turret.

if you select world in the turret’s transform your turret won’t inherit the tank rotation.

275699-rotation.png

Is it also possible to set this in c++ code? I don’t want to do this manually for all my instances

If you do it on the parent then all children should inherit it.

Yes but i have many tanks is what i mean. I want to be able to set it in the constructor instead of manually changing it for each blueprint instance of my c++ class( each tank)

SOLUTION in c++:

SetAbsolute(), which takes 3 booleans: 1 for location, rotation and scale
SetAbsolute(false, true, false) works for the turret.