Is it possible to turn on ragdoll physics mid-game when the player loses through scripting? For example, say a character is running a skeletal animation. Can he suddenly have the ragdoll physics activate for him?
Ragdoll physics turn on when you turn off the Animator Component gameObject.GetComponent<Animator>().enabled = false;
You should attach Animator Component to your enemy and turn it off with this script. You can turn off the Ragdoll physics when you turn on the Animator
gameObject.GetComponent<Animator>().enabled = true;
Hope this was helpful.