Unsolved AI Path and drivable road

Discussion in 'World Editor' started by Kamikaze667, Aug 28, 2025.

  1. Kamikaze667

    Kamikaze667
    Expand Collapse

    Joined:
    Aug 28, 2025
    Messages:
    1
    Does anybody know how can i see all the roads an AI cand drive on? And how can i make the AI go offroad or take other turns, ignore one way roads.(For exaple on the Utah map there are always some turns that the AI seems to prefer like always when it enters the highway it turns right but never left and other turns like these, and never goes offroad. What can i do?
     
  2. rodmunch99

    rodmunch99
    Expand Collapse

    Joined:
    Jun 25, 2015
    Messages:
    35
    You might already know this, but the AI path is determined by the Pathfinding settings in a Decal Road. (Inspector Window) By default, Decal Roads are set with a drivability of -1 (No AI). To make the Decal Road an AI path, set its value to a positive number between 0.1 and 1.
    You can easily see which Decal Roads use AI in World Editor by selecting the Decal Road Editor and, near the top on the left, ticking "AI Roads Selectable" and unticking "non-AI roads selectable". Now, when you hover over a decal road, it will only highlight if it is an AI road.
    You can also make the road one-way or change the number of left or right lanes by using the other settings in Pathfinding.
    The AI algorithm the cars use tends to favour some routes over others (AI tends to avoid roads that are short and have dead ends, which will hardly ever be used).
    --- Post updated ---
    This is what I mean:
    AI_roads1.jpg AI_roads2.jpg
     
  3. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    561
    In world editor go to view, visualization settings and check debug navigraph road drivability. Could be named a bit different but you will find it.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice