When I swing the weapon, the AI instead death not when health low then dead

Hey @anonymous_user_3315e26f! So there’s a couple of odd things with this script, but for the sake of time I’ll just point out why they are dying regardless of damage, and how to fix that.

image

The Taking Damage From Player node has no conditional, so whenever they take damage they are destroyed. Instead you want to place a branch no in between your Taking Damage From Player node and your DestroyActor node, and in your Taking Damage from Player Node, you should have a boolean return, and then connect that to the newly formed branch node.

Would look a bit like this (I added a delay so you can see your ragdoll)

Let me know if you have any questions!

1 Like