I have wait Task in BT and i need to stop it if my Boolean Var Is True. How to do this?
Also it will be good if i can brake move to location on change bool
- Add a Blackboard Based Condition decorator to the node you want to abort when the bool is false.
- Click the decorator, and change the settings for it on the details panel, set the
Blackboard Key
for the bool you want. - Specify
Key Query
to beIs Set
for true, orIs Not Set
for checking false. You said you only want this to execute while the bool is false, then you’ll want to have this set toIs Not Set
. - Now also set the Observer aborts to
Self
.
- Click the decorator, and change the settings for it on the details panel, set the
- If you want sequence execution to continue on after this abort, make sure to add a Force Success decorator also.
Here’s a couple resources on how the Behavior Trees work: