I want to rotate the camera around pawn 360 degrees only when in idle position

I want to rotate the camera around my character full 360 degrees when he is in idle position and reset the camera when starts walking or running but my first priority is to make my camera rotate around my pawn