What is the best way to have a large number of ai?

I was trying to think of a way to have a large number of AI on-screen at once, but would like a second opinion. I was thinking about having the AI have more detailed Behavior trees when they are by themselves, but when close to other AI they choose one of the AI to be the leader of the group, so they use a very simple behavior tree when following the leader, would this be a good way to go about doing it? If not I would very much appreciate any help I can get.

Hey Hafgren,

This is indeed a solid way of doing it, you will have to test a lot though because I have not seen anyone do it in Unreal yet :slight_smile:
I have done some tests myself and my frame-rate only drops when I have 150+ advanced individual AI’s running around :stuck_out_tongue:

You should take a look at this link: https://software.intel.com/en-us/articles/designing-artificial-intelligence-for-games-part-1/
There is also something described like a ‘commander’ AI leading other AI’s like you are describing.

Good luck with your project, I am looking foreward to the results!
Elias