Three differnt orders which each has a specific Integer linked to them. In the picture we se order 3 (left) and 2(right).
This integer is set in the blackboard of the Actor.
So with this BT setup I would expect the AI to execute the right branch if I issue order 2 to the AI? Aborting itself and everything in that branch in case I would give the order 3, and instead starting to execute the left branch?
Is this correct?
Also, what does “Lower priority” mean. Would The branch on the right be lower priority than the one on the left?
Becasue I rarely see the behavior from the tree that I would expect when I add different decorators. It just seem to execute in any way it wants.
In this example, when I actually give order 1 or 3 it just keep on going down the Order 3 branch. And yes the Order blackbaord value is set correctly.
And as I start CurrentOrder is set to 0.
So in my mind all of the branches would fail and the BT would go to the Wait node at the top.
I then Issue order 3 with some blueprint script and the BB value CurrentOrder is changed to 3.
Wouldn’t that mean that the left brnach would then be valid and actually run?