Solved PointLights Only at Night

Discussion in 'Mod Support' started by CEvans, Feb 6, 2018.

  1. CEvans

    CEvans
    Expand Collapse

    Joined:
    Feb 5, 2018
    Messages:
    17
    How can they be set to turn on at dusk near night. There was this thread (https://www.beamng.com/threads/point-lights-only-light-up-at-night.23942/) but it seems these files (server) have changed? Don't see them? Road Atlanta and others currently have what I would like to add to a new track. Any help would be greatly appreciated on what to do for correct night lighting.
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    You need a LUA script that runs with the level.

    My level have that:
    https://www.beamng.com/resources/vr_city.419/
    In the mainLevel.lua file. Just put that in your level's folder, and adjust it to match your level*

    * Mainly have to adjust the TOD.TIME which lights turns on (line 20).
    You also need to have all your lights in a folder, so that you can tell them game which lights to turn on/off (line 7)
     
  3. CEvans

    CEvans
    Expand Collapse

    Joined:
    Feb 5, 2018
    Messages:
    17
    Thank you for your help!! Problem fixed.
     
  4. bob.blunderton

    bob.blunderton
    Expand Collapse

    Joined:
    Apr 3, 2015
    Messages:
    3,424
    I will be using this on my Roane County map in the future if I decide to keep the lights or not. I don't know if the map will benefit more from the 15~20 lights or so added to it vs what could be driven on like roads/bridges etc.
     
  5. CEvans

    CEvans
    Expand Collapse

    Joined:
    Feb 5, 2018
    Messages:
    17
    In the newest game update 0.12 this stopped working. Does anyone know what code to change to have the lights go off during the day again?
     
  6. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    Thanks for the report, we will check why it isn't working anymore.
     
  7. CEvans

    CEvans
    Expand Collapse

    Joined:
    Feb 5, 2018
    Messages:
    17
    Greatly appreciated!
     
  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