Hey all! Basically, I’ve tried to make the behavior tree check if the ai is selected before doing any movement logic. I have a variable set in my ai controller, which changes to selected if the player clicks on the character. Now, I tried casting from my decorator to my ai controller and getting the variables value, and assigning that value to a blackboard key. I have the decorator in my sequence node, and its also checking that the blackboard key is set.The problem is that once the behavior tree is initialized, it seems like it ignored the decorator or can’t get the value and simply loops the tree, even if I do deselect my unit. I sense that it can’t get the selected value properly. Any help/suggestions?
No pics for now as I don’t have access to my computer right now.