Solved Point lights only light up at night

Discussion in 'Mod Support' started by FS16, Apr 17, 2016.

  1. FS16

    FS16
    Expand Collapse

    Joined:
    Feb 18, 2015
    Messages:
    992
    How do I make point lights actually only light up at night? I've seen this in a few maps, so how do you do this?
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    This is a Torque3D thing.
    Somebody on their forum posted a script which Ouerbacker used on its map (I used it too on my VR_City map).
    If you check in the files of my map you will see a 'server' folder with some scripts:


    You can basically copy that 'server' folder to your level.
    Then, all the lights you want to light-up at night must be placed inside a group (in the scene-tree) called 'dynamicLights'.
    That's it. You may need to edit the 'dynamicLights.cs' file with notepad to adjust when the lights actually turns on and off.
     
    • Like Like x 1
  3. FS16

    FS16
    Expand Collapse

    Joined:
    Feb 18, 2015
    Messages:
    992
    Thanks for your help! :)
     
  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