Solved Trying to make AI go through a loop-de-loop

Discussion in 'Mod Support' started by Car Devastator, Apr 6, 2023.

  1. Car Devastator

    Car Devastator
    Expand Collapse

    Joined:
    May 5, 2016
    Messages:
    66
    Hi, I have a quite specific problem with arranging waypoints in such a way that the AI can pass through the loop. I think what you can see in the screenshots below is the closest to solving the problem because the car goes through the entire loop, but at the very end, it suddenly turns sharply to the right and goes off the track. I also tried arranging many waypoints around the entire loop, but then the AI becomes completely lost and can't even complete half of it. It's worth noting that the waypoints are connected and scripted in a Lua file with defined AI parameters. The goal is to create a race with at least 6 vehicles on the track created in the track builder tool using a manually created path with waypoints. Does anyone have any ideas? Maybe a better solution than waypoints or a different arrangement of them?

     
    #1 Car Devastator, Apr 6, 2023
    Last edited: Apr 11, 2023
  2. Car Devastator

    Car Devastator
    Expand Collapse

    Joined:
    May 5, 2016
    Messages:
    66
    Okay, so basically, all I had to do was to slightly reduce the loop and place the waypoints very close to each other in a much larger quantity than I thought I should, now everything works great, maybe someone will benefit from it in the future. It is worth noting that the waypoints on the loop must have a high speed set in the Lua code, otherwise the car will slow down and not complete the loop.


    upload_2023-4-11_10-5-14.png
     
    #2 Car Devastator, Apr 11, 2023
    Last edited: Apr 11, 2023
    • Like Like x 1
  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