I have a behavior tree task which calls function “Move to and use smart object with gameplay behavior” in “Receive Execute AI” event.
The interaction with smart object works as intended but I need to stop the interaction in certain cases. Aborting the task doesn’t work because it continues the interaction until it finishes executing. I also tried using function “Mark smart object slot as free” in “Receive Abort AI” event.
But it doesn’t make any difference - the interaction continues executing. Also, in this case, I get this error:
So it seems that the smart object slot is still not released properly.
I would appreciate any help as I’m out of ideas.