I got an error with my behavior tree, and don't know what to do.
Above you'll find a part of my behavior tree.
At the end you'll see a screenshot of the error message.
(StackOverflowException: The requested operation caused a stack overflow.)
What is causing the problem?
* The column (highlighted in tree above) task for every npc except the one which is marked as the leader.
Here's how the column task was setup
The NPCs are generated when I click play by a custom script. Basically leader and "followers" are based on the same prefab.
Here you can see the variables used for the leader, after initialization:
An here are the variables used for the followers, after initialization:
What I want to achieve is basically, when the variable "CurrentCommand" shows Hold, the NPCs should create a column formation at the given transform in the variable "HoldPositionTarget".
The Error I'm receiving can be checked in the following screenshot.