I'm calling Set angle just to prove the function is called. If you run the example, you see the snail animate, and then on frame 6, it calls the function and also rotates 45 degrees.
You may want to move the function off of the Main event sheet (lets call it the Function event sheet). Then on the Startup event sheet include that event sheet. You may have things backwards.