Sorry for late reply.
Breaking out of Running behaviours can be done with either of the following ways, but all al depended on a condition:
– Use of Dynamic Sequencer/Selector with a condition child.
– Use of Interruptor Decorator.
– Use of Dynamic Accessor Decorator.
Reseting the root node of the BT this way, may work but it’s not thoroughly tested. Especialy using it under a Repeater 🙂
Why wouldn’t you want to use a condition since in practise, you will reset the tree if something happens?
If the reason is not to clutter the variables, you can use the ‘Check Event’ condition and send an event to the BT. So for example you can use an Interruptor with a Check Event Condition (“stunned”) and when the enemy is stunned, you can send the event by any means, like for example with the ‘SendEvent’ action or by code.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.