I'm sorry but if what you're looking for is to get the lights off all the time you could run a script that if it's day it deactivates torch if it's night it deactivates torch anyway, and if you want to activate torch at night you could do it too.
PS: This script isn't my doing:
Meant to be placed on the OnHeartbeat event of a placeable light.
//:: j_light_daynight.nss
//:: Based on NW_O2_ONOFF.nss
//:: Copyright © 2001 Bioware Corp.
//:: Modified By: Moondog
//:: Modified On: June 21, 2002
//:: Changed from an on/off switch for lights to
//:: automatically turning a light on during the
//:: night and off during the day.
//:: This is an OnHeartbeat script for placeable
//:: lights.
//:: Original Created By: Brent
//:: Original Created On: January 2002
void TurnOnLight();
void TurnOffLight();
void main()
{
//runonce
if (GetLocalInt (OBJECT_SELF,"RUNONCE") != 1)
{
SetLocalInt (OBJECT_SELF,"RUNONCE", 1);
PlayAnimation (ANIMATION_PLACEABLE_DEACTIVATE);
SetPlaceableIllumination (OBJECT_SELF, FALSE);
SetLocalInt (OBJECT_SELF,"NW_L_AMION",0);
RecomputeStaticLighting (GetArea(OBJECT_SELF));
}
//normal heartbeat
if (GetLocalInt (OBJECT_SELF,"NW_L_AMION") == 0 && GetIsNight() == TRUE)
{
TurnOnLight(); //if you want it to always have the lights deactivated just put "TurnOffLight()"
//without the quotes
}
else if (GetLocalInt (OBJECT_SELF,"NW_L_AMION") == 1 && GetIsDay() == TRUE)
{
TurnOffLight();
}
}
void TurnOnLight()
{
PlayAnimation (ANIMATION_PLACEABLE_ACTIVATE);
SetPlaceableIllumination (OBJECT_SELF, TRUE);
SetLocalInt (OBJECT_SELF,"NW_L_AMION",1);
RecomputeStaticLighting (GetArea(OBJECT_SELF));
}
void TurnOffLight()
{
PlayAnimation (ANIMATION_PLACEABLE_DEACTIVATE);
SetPlaceableIllumination (OBJECT_SELF, FALSE);
SetLocalInt (OBJECT_SELF,"NW_L_AMION",0);
RecomputeStaticLighting (GetArea(OBJECT_SELF));
}
Hope it helped
'>
Modifié par Dark Ruler, 19 février 2011 - 03:43 .