AnimNotify + Behavior Tree (& Root Motion)

If you want to use variables as switches for behavior tree you need to use the blackboard. in my example, a blueprint on my AI sets visible as true on my blackboard, my tree changes its course depending on the variables and aborts current process if changed.

Try to understand how notify observer and observer aborts works, that way you can communicate through character’s blueprints, events, and even animations.

Now, i dont really recommend depending on the onPerceptionUpdate (or blueprints for behavior at all) cause the update is not actually realtime (or so it seems), but this is just an example, and i dont think it even applies for you, but still, its a way to show you how to link from outside of the tree.
Its very important that you set the observers, if you dont, it will never switch on value change, and the tree will stay stuck on that branch.