Why does a behavior tree decorator not run during execution?

Hi ,

I’ve had a discussion with Mieszko about it and found an alternative. problem seems to be that decorator I’d written does not function same as Blackboard decorators. Essentially blackboard decorators are woken by observer on blackboard values they are using, so as values change blackboard decorator is allowed to run and thus can exit movement.

But my own decorators do not explicitly observe a blackboard value, but instead they read value during execution of condition. problem is that I cannot find a node that allows me to add an observer callback for my own decorators that are then executed when blackboard value I use changes.

So to reproduce, you would need to write your own decorator that checks a value in blackboard and simply breakpoint when it gets called. It would get called before node it decorates is run, and then when node it decorates completes and not “during” that node’s execution. Essentially I need some way of sayiing “when this node is executing, make sure to test my condition every time too”, which CAN happen with blackboard decorators because their observed values can run their conditions, but doesn’t work for standard decorators.

I hope that is clear.