In Spike BP, set actor tag to Alive
In ninja BP, event anydamage node, add the play anim mesh node to branch
set the anim to play to death
Add do once node after branch (to make ninja die once, not repeated)
In behavoir tree, add newblackboard IsDead (Boolen)
Back to ninja BP, add blackboard component node in event begin play node, change asset to ninja BP
Add set value as bool and get blackboard nodes in Event any damage graph
Add make literal name connect to keyname and set value as below. Add command as Death
Go to behavior tree, random roam, sequence, add decorator blackboard, set as follow:
Copy the blackboard, paste on both chase player and 3rd sequence