1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

(Help) How to change the speed on the AI track (F11 Editor)

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Mopsi1020, Oct 25, 2024.

  1. Mopsi1020

    Mopsi1020
    Expand Collapse

    Joined:
    Jul 28, 2024
    Messages:
    219
    Does anyone know how to change the speed of the AI tracks in the F11 editor to make it feel a bit more realistic?
     
  2. feway

    feway
    Expand Collapse

    Joined:
    Jul 6, 2024
    Messages:
    126
    You mean the speed of AI traffic? As far as I know there are only 2 ways, changing the width of the road (wider = faster speed) or setting up zones: https://documentation.beamng.com/world_editor/windows/sites_editor/ :)
     
  3. Barbent Servo GT

    Barbent Servo GT
    Expand Collapse

    Joined:
    Jun 4, 2023
    Messages:
    685
    I placed the following in the mainLevel.lua for the map I am working on. The result is more speed in traffic but also more accidents :). The function is called when traffic is loaded and starts to drive. This can also be achieved with the traffic app, but I wanted it to be adjusted automatically, every time traffic spawns on my map.
    Unfortunately zones can only reduce traffic speed, imo, to be used for speedlimits.

    (this is only the core code fragment)
    Code:
    local function onTrafficStarted()
        gameplay_traffic.setTrafficVars({baseAggression = 0.4})
    end
    
    Maybe this can help you a bit.
     
  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