Decorator not observing change to blackboard key. UE 5.3

Hey all, I’ve encountered an issue with Behavior Trees that unless I am misunderstanding something may potentially be a bug. I have an AI that moves towards the player while a service runs and checks if the distance between the AI and the player is within a range. If it is, the blackboard key “withinRange” is set to true.

I have placed a decorator on the move function and have set to observe “On Value Change”(also have tried Result Change.) What I expect to happen, is that when the blackboard key changes, the condition fails and aborts the task.

What is actually happening is that the decorator does not observe the change to the blackboard key until execution has finished.

I have also made sure to include a “Recieve Abort” event for my custom task already.

Am I misunderstanding how things should work, or is this an engine bug? Help would be appreciated! This is driving me up the wall. In the meantime of awaiting a response, I am going to try to just implement an observer in my custom task that will finish the task upon value being changed.

Hey @yosheDev!

I usually set it up like you did in the “Attack” side. Have you tried having a sequence with only the decorator on the movement side, then using “aborts both”? Also, try using the “Step” tool in the play menu above to go step by step, it’s possible that it is looping back around and it just looks like it’s staying on the left.