How to have 2 conditions met at the same time to abort?

skinwalker

New member
Hello,

I am running the "Attack" task until "CanSeeObject" is false, but I want to combine it with "IsAttacking" = false, because I dont want to interrupt the attack in the middle of it, so I need 2 conditions - CanSeeObjects = false and IsAttacking = false and if those are met I want to interrupt the attacking, which will reset my behavior tree and go to Idle.

1270

I made this behavior tree, but didnt get the desired result, any suggestions?
 
Top