In this lesson we create an additional function to make the enemy AI script wait for animations to finish playing before continuing.