I have tried several times, making sure unpacking options were correct, but templightswitchscript.psc does not unpack correctly and comes out blank. Maybe there is an error in your archive.
I don't think Vortex is unpacking this mod correctly, because even though it says it's installed, consoling "coc zyresources" ingame does nothing. The cell is simply not there. I've tried with both 1.0 and 1.1.
3 comments
Scriptname TempLightSwitchScript extends ObjectReference
{Allows you to turn the lights on & off by pressing a button}
ObjectReference Property MainLight Auto
ObjectReference Property CandleOff Auto
ObjectReference Property CandleOn Auto
Event OnActivate(ObjectReference akActionRef)
If (MainLight.IsEnabled())
MainLight.disable()
CandleOn.disable()
CandleOff.enable()
debug.notification("Lights are turned off.")
Else
MainLight.enable()
CandleOn.enable()
CandleOff.disable()
debug.notification("Lights are turned on.")<-- smiley is a closing parenthesis
EndIf
EndEvent