Released Atlanto 1.02.3.4

A fictional island in the North Atlantic ocean featuring three towns and some infamous myths.

  1. shinchanf1

    shinchanf1
    Expand Collapse

    Joined:
    Nov 12, 2019
    Messages:
    1,017
    Looks like this line is actually related to preventing the ghost car from spawning in the day. the other line seems to be for setting rarity of the car spawning at night.
    Code:
    ghost.mode = "stop"
    gameplay_traffic.setVehicleVars({spawnOut = 0}, ghost.id)
    Code:
    gameplay_traffic.activate({ghost.id})
    gameplay_traffic.setVehicleVars({spawnOut = 0.6}, ghost.id)
    after searching the traffic.lua file, I replaced the lines with this.
    Code:
    gameplay_traffic.setTrafficVars({spawnValue = 0})
    Code:
    gameplay_traffic.setTrafficVars({spawnValue = 0.6})
    This should prevent the car from in spawning the day and set it to spawn at the intended rarity.
    I wasn't able to find a part in the function where you can insert the vehicle id, so it applies to all traffic. This does prevent traffic from working in the day, but I don't think it matters that much.
     
  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