This function halts the program flow until the animation specified
id has finished playing. After that, the execution of your
script is continued. If you need to do something while your animation
is playing, use the IsAnimPlaying() command in connection with
PlayAnim(1,#PLAYONCE) WaitAnimEnd(1)The above code plays animation 1 and waits for it to finish.