NDDragor Posted April 28, 2015 Share Posted April 28, 2015 I have made a checkpoint in my mod and it has many big searchlights which are lighting up the area around. It looks really good at night but during the day the lights make the place too bright and it looks really bad. So what I wanna know is if there is a way to make the lights in that area turn themselves on each evening and turn off each morning so that they would lighten up the place only at night when its dark. I think it could be done with a script like at some interiors where all lights turn on after you use a lever. Link to comment Share on other sites More sharing options...
Mishaxhi Posted April 28, 2015 Share Posted April 28, 2015 (edited) To turns lights off from 7am - 7pm - make all lights persistent refs- set all lights to be children of just one of them, let's call this parent one Light01REF Script on that light would be: scn scriptnamehere Begin GameMode if GetCurrentTime > 7 && GetCurrentTime < 19 Light01REF.Disable elseIf GetCurrentTime < 7 || GetCurrentTime > 19 Light01REF.Enable endIf End Should work. Might be a more elegant way. Edited April 28, 2015 by Mishaxhi Link to comment Share on other sites More sharing options...
NDDragor Posted April 29, 2015 Author Share Posted April 29, 2015 Thanks a lot! This worked perfectly and was really easy. Link to comment Share on other sites More sharing options...
Recommended Posts