Rotating Door question

Is there a way, to have the door rotate, in the same direction a full 360 degrees, but stop say every 45 degrees? So have a button/switch, you press it once, it rotates 45 degrees, then again and it rotates another 45 degrees, so 90 degrees from origin, and so on? I’ve been out of mapping for a while and don’t rememebr all the little tricks.

Func_rotating. Set it to rotate at 45 degrees per second and then have a button with these outputs:

OnPressed | func_rotating | Start | 0.00
OnPressed | func_rotating | Stop | 1.00

Should work.

(other rotation speeds will work too but then you’ll have to fiddle around with the delays of the func_button’s outputs)