I’m having some trouble with decorators in Behavior Trees. When I create a new decorator using Blueprints, it’s missing the “Notify Observer” option in Flow control.
For example the standard decorator “Blackboard” has these options, but the decorator I created doesn’t appear to have them.
Functionally, I’m not able to interrupt a MoveTo node using my custom decorator, but I can with the Standard “Blackboard” decorator. Does anyone have a workaround for this?
I know it has been quite a while, but did you ever discover what was causing this issue? I’m trying to interrupt a wait node however the “Notify Observer” option is missing.
When creating your own decorators, you’ll need to set 3 variables in the constructor in order to enable the “aborting” dropdown you’re looking for. I’ve used the following constructor when I wanted to have a “Does Path Exist” decorator that would abort the underlying tree when it failed:
You can use either, depending on what you’re after. BTDecorator_BlackboardBase just gives you a “default” blackboard key to edit. It’s useful when your decorator will only have a single parameter.