How to finish State Tree Task?

It’s not BT task, it’s a State Tree task :stuck_out_tongue:



I don’t know how to finish the task when montage finishes play, I guess it could be done with ‘OnTick’ event as it also returns task result but that doesn’t seem very optimized.