Limit tank gun movement

I am making a tank game, partially based on the unreal tutorial on tanks, but they never discuss in the video how to prevent your rotating cannon from going 360 degrees around your tank, which as it so happens, is what is occurring with my tank.

Look at the Clamp Angle node. You can specify a maximum and minimum about of degrees for your turret and it will always stay within those values.

well, obviously i didn’t use it correctly because all is does now is continuously rotate around the tank, here’s a pict

ure of the blueprint.

Try this

nah, still spinning

Are you sure you’re using SET Rotation and not ADD?

Other than that, you’re LookUp event must be constantly feeding you value > 0

Wait, never mind, its working now, thanks a lot!