1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

How To Add AI Support?

Discussion in 'General Discussion' started by andrzejserafin5, May 25, 2020.

  1. andrzejserafin5

    andrzejserafin5
    Expand Collapse

    Joined:
    Apr 23, 2020
    Messages:
    1,065
  2. Elvisnake

    Elvisnake
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    206
    Hi, I have search a long time, in fact seems to be simple: go there for check Ryvylo answer

    In substance you can manage it with road path in the classical environnement editor (F11)and put positive value depending of kind of road (1 for asphakt, 0.5 for dirt) -1 says AI can't go on.
    If like me you use lot of road mesh you can complete the AI path with Waypoint that you put in your map, create at text file call map.json in your main folder with this structure inside:

    note:
    A is a road
    B is for a race

    Code:
    {
        "segments" : {
            "name of your path_A" : {
                "nodes" : ["wpA1", "wpA2", "wpA29"],
                "drivability" : 1
            }, 
            "name of your path_B" : {
                "nodes" : ["wpB1", "wpB2"],
                "drivability" : 1
                "oneWay": true,
                "flipDirection": false,
            }
        }
    }
    Hope my explanation help you.
     
    #2 Elvisnake, May 27, 2020
    Last edited: May 27, 2020
  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