Hi everyone,
what is the best approach to sharing the same behavior tree between multiple agents? Let's say I have a relatively complex tree, handling movement along a list of waypoints, starting and stopping conversations with the player (and related animations syncing), fleeing when attacked, etc. I would like to apply this tree to 5-10 different NPCs in my scene. Do I need to create a behavior tree for each NPC or is there a simpler way to apply the same behavior to all of them while at the same time be able to customize the single tasks (i.e. give NPC 1 waypoint set 1, NPC 2 waypoint set 2, etc)?
what is the best approach to sharing the same behavior tree between multiple agents? Let's say I have a relatively complex tree, handling movement along a list of waypoints, starting and stopping conversations with the player (and related animations syncing), fleeing when attacked, etc. I would like to apply this tree to 5-10 different NPCs in my scene. Do I need to create a behavior tree for each NPC or is there a simpler way to apply the same behavior to all of them while at the same time be able to customize the single tasks (i.e. give NPC 1 waypoint set 1, NPC 2 waypoint set 2, etc)?