Task OnEnter and OnExit callbacks?

Guerrilla705

New member
Are there callbacks for OnEnter and OnExit of an action task? I can't seem to find any. If not, are there any best practices way to trigger an event (like begin a melee from an external melee system) right when the behavior is entered? I can put calls to my own OnExit whenever I would call a return TaskStatus.Success or return TaskStatus.Failure, but I also want to be able to run OnExit when the task is exited for other reasons (interrupt, conditional abort, etc.)
 
Ah sorry, I thought those were behavior level, my bad! Follow up question, does OnEnd get called when the task is interrupted and cancelled from elsewhere? The docs just mention getting called on success or failure, so does that just mean when returning those task statuses? Thanks!
 
Last edited:
OnEnd gets called whenever the task ends, through a normal ending, interrupt, or aborted. There have been a few requests to be able to have more details for how the task was ended and I'll look at adding those.
 
Top