somewhat confused about end animation
scripted update of code from master at 05acdf6 somewhat confused about end animation