Reply To: How to restart a behavior tree ?!

NodeCanvas Forums Support How to restart a behavior tree ?! Reply To: How to restart a behavior tree ?!

#12249
Gavalakis
Keymaster

Hello,

StartBehaviour can’t be called on SubTrees, no, but SubTrees should reset when the SubTree NODE (that has the reference to the actual SubTree asset) is reset, which is usually done just after an evaluation cycle/tick of the parent tree.
Are you by any chance, swap the target SubTree by using a blackboard variable or manually, and doing so *while* the subtree is already running?

Thanks.

Join us on Discord: https://discord.gg/97q2Rjh