How to get the running tasks of another behavior tree?

yanghanwen

New member
Hey everyone,I'm learning Behavior Designer recently,I met a problem:

Humans and zombies' behaviors driven by Behavior Tree,but how can a zombie checks the current running tasks of the behavior tree which attached to another zombie?

For example ,zombie1 is grasping humans,other zombies only bite humans if he's graspd by one of the zombies,so how does other zombies check if there's a zombie's Grasp task is running?
 
For this specific scenario I would not check the task but instead use the event system to notify the other agent that the unit is currently being grasped. Multiple tasks can run at the same time so this is a more straight forward solution:

 
For this specific scenario I would not check the task but instead use the event system to notify the other agent that the unit is currently being grasped. Multiple tasks can run at the same time so this is a more straight forward solution:

Thanks for your advice,it sovled!
 
Top