Then, at some point in the main code of the level BP, you can make some tree members:
and connect them to each other:
So, you can see the structure is growing. We can directly find anyone with one BP node GetAllActorsWithTag, but you might want to use some sort of ID if you’re really going for this.
Also I don’t know how heavy this will be if you have thousands of people in the tree. You might want to do an experiement on that.
As far as I know, this is the only way you can get recursive data structures in BP. If large numbers do turn out to drag down performance then maybe you do have to go for just plain arrays. But then you have to cope with representing the recursion with a linear array. Don’t fancy coding that…
Does it make sense?