When these two global variable both reach, only the first action 'set animation frame to 3' can run.
This event runs on every tick - which is about 60 times per second. That's why animation frame is constantly set to 3, and all other actions after "Wait" never happen.
You need to add "System Trigger Once" condition to this event.