How do I make an AI take a longer path?

Hey all. I have a simple AI question.

Pathfinding takes all possible routes and chooses the shortest one, but is there a way to have the AI take a longer path? I have the common issue where a group of enemies will spawn and run in single file to an objective. I can add some custom stuff to make them spread out a little bit, but I want some enemies to take all new paths to make encounters more interesting.

Thanks in advance!


You may want to look into the EQS navigation methods, those produce scores where the AI makes a decision based on the current needs. You can alter the needs to favor the longer route at times when desired.