Setting A Fire Or Light To Go On Or Off

Post » Wed Aug 26, 2009 12:08 am

Hello.

I am setting a number of exterior lights and fires that need to start burning at about 2000 hours and go off at 0400 hours. How would I do this?
User avatar
Kill Bill
 
Posts: 3355
Joined: Wed Aug 30, 2006 2:22 am

Post » Wed Aug 26, 2009 12:46 pm

Hello.

I am setting a number of exterior lights and fires that need to start burning at about 2000 hours and go off at 0400 hours. How would I do this?


Make one of the light sources per cell a persistent reference, give it a name and link any other sources in the same cell with 'enable parent'. Put this script on the light source:

scn LightScriptNamebegin gamemodeif gamehour >= 20 || gamehour <= 4  if getdisabled == 1    enable  endifelseif getdisabled == 0disableendifend


If you have lights where one light is an on and the other one is an off version you need to put them on top of each other and set the status of the child to 'Set enable state to opposite of parent' in the enable parent tab.
User avatar
Mr. Ray
 
Posts: 3459
Joined: Sun Jul 29, 2007 8:08 am


Return to IV - Oblivion