Hello everyone,
I have a strange issue with an execution order in the BT for my warrior.
When the warrior sees an enemy then a left tree is executed and the warrior follows and attacks the enemy however if the enemy was lost (too far from the warrior to attack) then the attack tree will be interrupted and the whole tree will be switched to the right one (moving to a defending position).
The main issue is that when the enemy was lost and the warrior can see it again, the behavior designer (BD) doesn't switch to the left tree (attack) until the right one (moving to a defending position) will be finished.
As I understand if I have a node with a lower priority mark (attack) then when BD executes a right node (moving to a defending position) the right node should be interrupted immediately and the left one should be started.
Please, see an example below.
I have a strange issue with an execution order in the BT for my warrior.
When the warrior sees an enemy then a left tree is executed and the warrior follows and attacks the enemy however if the enemy was lost (too far from the warrior to attack) then the attack tree will be interrupted and the whole tree will be switched to the right one (moving to a defending position).
The main issue is that when the enemy was lost and the warrior can see it again, the behavior designer (BD) doesn't switch to the left tree (attack) until the right one (moving to a defending position) will be finished.
As I understand if I have a node with a lower priority mark (attack) then when BD executes a right node (moving to a defending position) the right node should be interrupted immediately and the left one should be started.
Please, see an example below.