Problem with Ragdoll activation dead animation

NPC plays UE stock dead animation, then gets deleted before ragdoll. couldnt figure out the problem why ragdoll doesnt happens

Death Ragdoll (not working) posted by anonymous | blueprintUE | PasteBin For Unreal Engine

Hey @vnvtkan how are you?

This issue probably comes from using a delay that is longer than the animation duration.

The best way to do this is to use an Animation Montage instead as an Animation. And then play it and get its duration before enabling the ragdoll.

Let me explain how:

  1. Create the montage by right clicking on your desired animation, going to “create” and “Create AnimMontage” and change its prefix to “AM_” to identify it easier:

  2. Replace your “Play Animation” node by “Play Anim Montage” node and select your montage. Then sned its return value to the delay:

This is how it will look:

As you can see, you will have one more issue to solve… It kinda “slingshot” when the ragdoll turns on as the animations is ending and trying to go back to the idle state.

But solving this is extremely easy! Just add a “subtract” node before the delay and cut 0.2 secs from it! Like this:

And you will end with something like this!

Hope this helps you!!!

Dear Juan, I greatly appreciate your detailed response. You made me understand and learn some fundamentals of the logic! Thank you for your time