Is there an API for being notified when a task has been conditionally aborted/stopped?

AKB

Member
We are using an ECS framework for our game, and therefore our custom action tasks run asynchronously to the behaviour tree. This works fine for most things but we need to be able to handle aborts. That is, when some abort happens, then the action being aborted (A move, wait etc) needs a callback so we can do what's needed to reset/pause our async actions.

If there's no way to do this, is there any work around?

Thanks
 
OK, so I found OnConditionalAbort() which seems to be working, but it was only mentioned in the source code, not mentioned in the docs (as well as a lot of other functions I can see). I have to say it doesn't instill confidence.
 
ParentTask.OnConditionalAbort is called after an abort. The parent tasks aren't documented very well but I have plans to do that before the next release.
 
Top