lights

Post » Sat Feb 19, 2011 11:02 am

In my current WIP I have a room with lights at the window to make it look like the outside light is comng in. is it possible to make them turn off at night or even dim as the day progresses before going out?
User avatar
Darlene Delk
 
Posts: 3413
Joined: Mon Aug 27, 2007 3:48 am

Post » Sat Feb 19, 2011 10:42 am

Yes, you need to add a script that will enable or disable the lights depending on the time of day. Like the existing script, Streetlights.

You cannot dim them, you would have to have different lights with different brightnesses and enable/disable the right ones. This is a little more complex.
User avatar
joeK
 
Posts: 3370
Joined: Tue Jul 10, 2007 10:22 am

Post » Sat Feb 19, 2011 5:39 am

I am a massive noob at scripting. The streetlightscript says ''if gamehour >= 18|| gamehour < 7'' do I change both of those numbers or just one? remember I need the lights to turn off at night not on. or can i just change the ''endable else disable'' to ''disable else enable?
User avatar
brian adkins
 
Posts: 3452
Joined: Mon Oct 01, 2007 8:51 am

Post » Fri Feb 18, 2011 7:22 pm

You could just switch the enable and disable around the other way. Just don't change that script, copy it, give it a new name, and your good to go.
User avatar
jenny goodwin
 
Posts: 3461
Joined: Wed Sep 13, 2006 4:57 am

Post » Sat Feb 19, 2011 4:19 am

I would suggest taking a look at the All Natural Real Lights plugin as they do exactly that in there on many occasions. You might even be able to use their script, too (but do ask for permission first!).
User avatar
Mylizards Dot com
 
Posts: 3379
Joined: Fri May 04, 2007 1:59 pm


Return to IV - Oblivion