Hi there,
I use a number of bool comparisons at the beginning of sequences with their Abort Type set to Lower Priority. These values are constantly reevaluated, and if they change then that branch interrupts a lower branch, it works great! However I need to test multiple booleans in one branch ("Can I see a player?" OR "Am I running away from a player?"), and I can't seem to get it to work. It interrupts the current branch when the first value changes.
Basically if "Can I see a player?" is true, I say "Run away from the player." When this starts, the AI looks away from the player, and so the reevaluation of "Can I see a player?" fails. I want to add an "OR, Am I running away from a player?" I tried adding both of these to a Selector with a Lower Priority Abort Type, but as soon as the first tested value changes ("Can I see a player?"), the "Run away from the player" Action is interrupted, despite what the value of "Am I running away from the player?" is. Where I want to remain in the current task if EITHER of the tested values is true.
Is there a way to achieve this? Here's an image to help illustrate the issue:
I use a number of bool comparisons at the beginning of sequences with their Abort Type set to Lower Priority. These values are constantly reevaluated, and if they change then that branch interrupts a lower branch, it works great! However I need to test multiple booleans in one branch ("Can I see a player?" OR "Am I running away from a player?"), and I can't seem to get it to work. It interrupts the current branch when the first value changes.
Basically if "Can I see a player?" is true, I say "Run away from the player." When this starts, the AI looks away from the player, and so the reevaluation of "Can I see a player?" fails. I want to add an "OR, Am I running away from a player?" I tried adding both of these to a Selector with a Lower Priority Abort Type, but as soon as the first tested value changes ("Can I see a player?"), the "Run away from the player" Action is interrupted, despite what the value of "Am I running away from the player?" is. Where I want to remain in the current task if EITHER of the tested values is true.
Is there a way to achieve this? Here's an image to help illustrate the issue:
