How do you stop and ai tree from running and the ai ragdoll

I can make the ai ragdoll when the health hits a certain point but cant stop the ai tree from running without destroying the ragdoll. please answer