AI Character as Enemy (part1)

AI Death (part6)


In Spike BP, set actor tag to Alive
image.png

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)
image.png
image.png

In behavoir tree, add newblackboard IsDead (Boolen)
image.png

Back to ninja BP, add blackboard component node in event begin play node, change asset to ninja BP
image.png

Add set value as bool and get blackboard nodes in Event any damage graph
image.png
Add make literal name connect to keyname and set value as below. Add command as Death
image.png

Go to behavior tree, random roam, sequence, add decorator blackboard, set as follow:
image.png
Copy the blackboard, paste on both chase player and 3rd sequence
image.png
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.