Hi, I cleaned up the syntax a little but, added a null reference exception check on start. Tested and it seems to be working fine for me. The reverse rotation doesnt work however.
PS, this is not written as a playmaker action, but as a monodevelop script. It can however easily be changed to a playmaker script.