I'm true newbie but I can tell you that animation player can call a method from his timeline. Its useful If you want, for example, to queue_free() an enemy only when his dead animation is completed. Simply add a function track to the animation player & call the method you want at the desired time.