BourgeoisBanana Posted December 12, 2015 Share Posted December 12, 2015 I've tried absolutely everything, but I'm only able to make objects appear at night or 24/7. I figured it would be a case of reversing the following script, but that doesn't work either: scn DayTimeOnlyLightsScript begin GameMode if (GameHour > 6) && (GameHour < 19) if GetDisabled == 0 Disable endif elseif GetDisabled Enable endif end This hasn't worked, no matter how much I switch the numbers around. I've also experimented with Emmitance but I can't find one that does what I need. The item in question is a window that I need illuminated during the day (because of sunlight) and dark at night (because of... no sunlight). Thanks in advance for your help! Link to comment Share on other sites More sharing options...
BourgeoisBanana Posted December 15, 2015 Author Share Posted December 15, 2015 I hate to be that guy but... bump? I'm really stuck here Link to comment Share on other sites More sharing options...
KiCHo666 Posted December 15, 2015 Share Posted December 15, 2015 I'm no expert, but my guess is that you're missing a reference object.Maybe this will help:http://geck.bethsoft.com/index.php?title=GetSelf Link to comment Share on other sites More sharing options...
Jokerine Posted December 15, 2015 Share Posted December 15, 2015 (edited) Check the conditions for a perk such as Solar Powered. That one works from 6 AM to 6 PM so it should give you a good idea. EDIT: For the script itself you could copy my go-to script for disabling lights during the day and enabling them at night. Then you can mess with the time using the conditions from Solar Powered. Begin Gamemode ;Light management here if GameHour >= 20 || GameHour < 6 LightREF.enable else LightREF.disable EndIf END Edited December 15, 2015 by Jokerine Link to comment Share on other sites More sharing options...
BourgeoisBanana Posted December 15, 2015 Author Share Posted December 15, 2015 Thanks guys, you were both right - I'm still very new to this whole scripting thing. All sorted now, thanks again! :laugh: Link to comment Share on other sites More sharing options...
Recommended Posts