DispatchTraceAttack and ragdolls

Would there be anyway to use DispatchTraceAttack to kill a target and then be able to “grab”(store value and manipulate) the ragdoll it creates?
DispatchTraceAttack returns nill according to the wiki so I am not sure how it could be done.

You can’t access the ragdoll it creates with that method, but you can do it from a PlayerDeath hook by using the player’s GetRagdollEntity method.