spwait
spwait <sprite number>
Waits for the animation of said sprite number to be either finished or cut short by the user.