It actually spawns the moment you decide to kill the enemy, everything is predetermined but you get a very fancy animation to watch for a long while.