How do I limit Rotation on certain axis for certain object

As the title implies I want to limit my Zaw (Z) rotation for a tank turret so it can’t rotate 360 degrees I want it to only rotate about 180 degrees. I want the barrel to also be limited.

Here is the model (test model)

Here is the Bp

The first branches are to say wich turret to control and the second branches is to say if you are able to rotate freely but I only want the right turret and left turret to be limited and all the barrels and im using my mouse to controll the rotation. Thanks

Hey, I would suggest you use SetRelativeRotation instead and then just clamp the axis you need. in my example, the rotation is getting driven by a “RotDelta” which we then clamp and apply.

Thanks I will try it when i have time I’l let you know if it works

It works thanks but now I have some problems with the free rotate

what is that problem? if you want to have no restriction you can create a branch which then passes over the clamp.

Yhea I know i did that but thanks