Best Way For Multiple Behaviors To Interact?

Hey All,
Today I read over the formation code and I was wondering what the best way to have multiple Trees interact with each other is (i.e 2 NPCs having a conversation or formations)? For example, in the formation code, everything is stored in the tree itself, but each tree must maintain the list of agents and their order, what is the advantage of this approach over some kind of external formation manager that keeps track of references to each agent and their position?
Thanks,
Colton
 
You could do either approach, and I am actually thinking about reworking the formations pack so it has a central manager instead of the leader concept. The leader concept was mostly created in order to easily determine the offset of the agents, not to make communication between the trees easier.

If you're wanting to do something simple you can also use the event system to communicate between trees: https://opsive.com/support/documentation/behavior-designer/events/
 
Top