Behavior Tree Service force a fail

HI, I want to do a BTService that checks if an BlackBoardKey_Actor is still set

I want this so when the actor is not set, should fail the sequence and return .
Right now from time to time, even though my actor is not set in the behavior tree, the branch is getting stuck and keeps running infinitely until I close the game .

The thing is that in a service I can’t call FinishExecute … and force it to fail .

If someone know of other solution to this I’m open to feedback .

Hi, why do you use a service for that? Cause from your description go with a decorator instead.

A service should be used for something that runs constantly in the background. If you want to decide whether or not to execute something, use a decorator.