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.35 Bug Reporting thread
    Solutions and more information may already be available.

Traffic should spawn farther away

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Unster, Mar 2, 2025.

  1. Unster

    Unster
    Expand Collapse

    Joined:
    Jan 23, 2018
    Messages:
    487
    The vehicles visibly pop in and it doesn't help that they spawn stationary. On open highways like those on East Coast it's more noticeable.
     
  2. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    512
    Take a look at Barbent’s Homerange map here in the forums and on repo. He did some lua code in his map to spawn the traffic farther away.
     
    • Agree Agree x 1
  3. Unster

    Unster
    Expand Collapse

    Joined:
    Jan 23, 2018
    Messages:
    487
    That's fine, but I was hoping for an eventual update from the devs that would apply to all maps.
     
    • Agree Agree x 1
  4. onionmad

    onionmad
    Expand Collapse

    Joined:
    Dec 30, 2024
    Messages:
    7
    in the meantime, you could probably do some LUA tweaking of your own, to adjust the global spawn distance for traffic vehicles.
     
  5. Barbent Servo GT

    Barbent Servo GT
    Expand Collapse

    Joined:
    Jun 4, 2023
    Messages:
    653
    Here's how:
    Reducing the variable called "spawnValue" leads to a greater spawn distance although the name doesn't suggest that.
    Code snippet:
    Code:
    gameplay_traffic.setTrafficVars({spawnValue = 0.5})
    In my map LUA I call this once on the "onTrafficStarted" event.
     
    • Like Like x 2
  6. onionmad

    onionmad
    Expand Collapse

    Joined:
    Dec 30, 2024
    Messages:
    7
    Why not set the global value, or this is not possible?
     
  7. Barbent Servo GT

    Barbent Servo GT
    Expand Collapse

    Joined:
    Jun 4, 2023
    Messages:
    653
    That is also possible. I just wanted to show how I made it automatic for a map. Setting this variable with the traffic app or through the console has the same effect, imo.
     
  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