Turn NPC to ragdoll

How to turn NPC to ragdoll? So i still can damage it as ragdoll, not just ents.Create(“prop_ragdoll”) because its immortal.
Note: Living ragdoll.

You must make a ragdoll and then by using hooks like EntityTakeDamage and such you can put a health variable on it and therefore “hurt” it.