Why is some of the NPC cotrolled by a DetourCrowdAiControlled failed to move?

Hi guys, i’m working on a multiple NPCs game, and i ran into some weird bugs:

First, i have a blueprint class “NPC”, and it was controlled by default DetourCrowdAICOntroller.

All NPCs share the same target position, and i used a “Ai Move to” to make them run , like:
1

all the npcs has the same “next point”, which is calculated in the Conscription Scipt.

Then i put some NPCs into the building. it worked just fine, every npc moved and reached the target point

but when i try to put more NPCs into the building, some of the NPCs on the top floor just won’t mvoe at all:

then i change the numble of NPCS 1 by 1 till to a total 50, it workd, every npc moved.

so i guess there is limitation of default DetrourCrowdAiController in a world?

Is there a way to solve this?

Let me know if you dont get my question.

ANY help would be great!

WISHES!!!

2
i put the npcs in the buildings like this

Hi, here at the bottom of the page Using Avoidance With the Navigation System in Unreal Engine | Unreal Engine 5.0 Documentation (5.7)

Inside the project settings, increase the number of max agents.

1 Like

Thanks!
Finally worked!