Is there a way for avoiding other AIs in the pathfinding

With the addition of the new pathfinding modifiers, it helped creating a specific path or a specific region to be avoided by pathfinding of an AI.

I tried using this to place pathfinding modifiers in my NPC so that other NPCs will avoid each other as much as possible when moving around, this should work as shown here:
https://gyazo.com/69d98ca4b0a13a4c1b4ac3a0226e10fa

However the issue is that the pathfinder for the NPC who has the modifier is also confused because of the modifier that exists in the character.
https://gyazo.com/f3adf9c9492bdccef489999acd961af9

Is there any other ways we could use the pathfinding modifier so that it ignores the modifier in its character? Like a table to ignore certain modifiers or ignoring modifiers that exists as a descendant of a model similar to how we add folders or models in a Raycast parameter to ignore that certain part.

1 Like

Perhaps create a collision group for all the NPCs such that they can’t collide with one another.

1 Like

No I’m not looking to fix it by just allowing them to collide, im asking if there is a way to make it so they actually try to avoid collission with other npc through the pathfinding system, like the boids algorithm of seperation. (Not trying to make boids algorithm just pointing an example since the the subjects tries to seperate from other subjects when it detects collision)

You can attach a part to each npc and put a pathfinding modifier on the part itself. Of course the part would be invisible, with CanCollide and CanTouch false.

Hello! i know its been a long time but im having literally the same issue as u. I dont want to use collissions for this and looking for a way to use modifiers. Did u manage to fix this problem?

Unfortunately, I couldn’t find any workaround to this. I was originally trying to create a horde system where the AIs would avoid each other instead of following one path and falling in line.

Since my use case for this is to make a horde ai, i just went with this method as a workaround: https://steamcdn-a.akamaihd.net/apps/valve/2009/ai_systems_of_l4d_mike_booth.pdf

2 Likes

hey i am also suffering the same problem! roblox should really update their pathfinding modifiers to make them have specific id’s so the pathfinder won’t get confused