Help Player to push 100 AI around him

Hi everyone

I’m trying to achieve something like this for AI in my project (not as intense, but the idea is there). The mechanic is similar to what Pikmin does.

I have around 100 AI following the player, the solution I’ve found for now was to make the collision between the player and AI to overlap, and I tried using a Add Force, but only works on AI that are on the “edge” of the crowd.

Video as it is right now.

Everything is working with a Blackboard/Behaviour tree.

Any idea is appreciated!

Thanks in advance.

Have you considered using the Detour Crowd AI Controller?

1 Like

Hey!

Didn’t know about that!

Unfortunately it didn’t work very well. For some reason half of the AI stopped moving at all. and it doens’t give me the same effect as the first video :frowning:

But good to know about this feature!

May not be feasible here but there’s another approach:

https://www.youtube.com/results?search_query=ue4+niagara+crowd

Scrub through a bunch, see if the results could work for you.

1 Like

Hey!

Thanks for the videos.
Yeah this could work. I need to test if it’s really worth doing it.
While would be worth it having it like that for it to have a “mob” mentality and only transform them to AI when needed, I can see this scaling up a lot.

I’ll research more and test it!

Thanks again! :slight_smile:

1 Like