BUG FIX: animation events was called incorrectly during animation transitions. Added a bool to the <animationscripts>