move your mouse around. the missiles will track the mouse and slowly turn towards it while moving forward. notice how if you move the mouse to the other side of the missile, the missile turns the other way.
If you put wait 0 seconds then it will wait for other functions to finish.