is there any chance to create a function like thing to hold common logic and accept parameters in behavior tree?

hello, i always think that it is a great waste in behavior tree to create any logic step by step, things become much more complicated with growing behavior tree.

i think it’s a lot better if i can extract some logic into a sub-behavior tree, and give it some parameters to get a variant for custom logic.

i’m not very familiar with behavior tree, but i do want to ask about it.

thank u very much