Pietrofonix
New member
Hi guys, I'm working on a behavior tree for the enemies and I have a question. The detection branches are the same for everyone, but there are essentially two types of overseeing behaviors (there can be more), Idle and Patrol. If I want to distinguish this behavior inside the tree, do you recommend to do it in a single tree with maybe a custom node that checks for a bool and switch branches between Idle and Patrol, or make two trees one with Idle and one with Patrol and keeping the detection branches inside both? Is there a better way to do it?
Here is the picture of my generic behavior tree. Inside the red box is where I would put the branches for Idle and Patrol.
Here is the picture of my generic behavior tree. Inside the red box is where I would put the branches for Idle and Patrol.
Last edited: