How to get the AI to take the quickest path

Hi,

I have AI setup that currently takes the shortest path to the target actor but I want it to take into account footpaths that can increase their speed. I have a simple trace to the ground to detect the footpath and then set an increased max walk speed.

How can I get the AI to take the footpath into account? Even if someone can point me in the right direction that would be great.

I am very new to Unreal Engine 4 (having my own question with related topic unanswered :/) but the NavModifier component may be what you’re looking for.

Thank You Pepeeee,

Adding a nav modifier component to the footpath and assigning a collision volume with overlap all as the root I was able to make the path ‘cost’ less so the AI would follow it.