if "victim found" returns ==> "search victim" returns ==> condition returns ==> switch to "rescue victim" subtree; : if in the first step it's anything else than "victim found" that returns (as it amounts to same behavior as above) #37
SOLUTION: just guard in "rescue" sequence (I don't see how else to make loop in the second child of "Search and rescue victim" without invalidating movement part while it's running and thereby checking "Victim found?" too soo - which is no solution)
what about the "takeoff" then? maybe as in tutorial with tip in the loop ticking the BT - check whether the tree returned FAILURE because of the guard and if so terminate
SOLUTION: just guard in "rescue" sequence (I don't see how else to make loop in the second child of "Search and rescue victim" without invalidating movement part while it's running and thereby checking "Victim found?" too soo - which is no solution)
tip
in the loop ticking the BT - check whether the tree returnedFAILURE
because of the guard and if so terminate