Is it possible to end all running functions in the script except for the calling one?

Is it possible to end all running functions in the script except for the calling one? I have a lot of functions calling each other as the “ai player” makes decisions, but if they finish the task it would be much easier for me if it checked in that one place, rather than checking in every cycle if the task is already done. Thanks.

you can use

return;

to finish any method, included void methids with no return value. I don’tknow if you are asking for this.