Jump to content

Need Help outdoor lights on/off?


yellotang

Recommended Posts

I am currently rape/pillaging/plundering a mod that utilizes nvdlc01_chandelieron.nif and lights outside. There is no scripts that manage these lights and so I tried to do it myself.

 

I created 2 x-markers, 1 titled MyOutdoorLightsREF and the other titled MyDarkSconceREF.

 

I added nvdlc01_chandelieroff.nif's and switched the nvdlc01_chandelieron.nif's to initially disabled and parent enabled both the 'on' and 'off' to the respectful REFs. I also created the following script

 

scn MyOutdoorLightingScript

 

Short LightsOn

 

Begin GameMode

 

If GetCurrentTime < 19.50 && GetCurrentTime > 6.0

If LightsOn != 1

Return

Elseif LightsOn == 1

MyOutdoorLightsREF.Disable

MyDarkSconceREF.Enable

Set LightsOn to 0

Endif

 

Elseif GetCurrentTime > 19.50 || GetCurrentTime < 6.0

If LightsOn == 1

Return

Elseif LightsOn != 1

MyOutdoorLightsREF.Enable

MyDarkSconceREF.Disable

Set LightsOn to 1

Return

Endif

Endif

 

End

It doesn't work, do you know what I am doing wrong?
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...