Code: Select all
Script 1 OPEN
{
Thing_Deactivate(181); //This deactivates the dynamic light upon start, since all the lights are initially turned off.
}
Script 11 (void)
{
Light_Changetovalue(177,128);
Light_Changetovalue(179,220);
Activatorsound("Lighton",220);
Setlinetexture(178,SIDE_FRONT,TEXTURE_BOTTOM,"liteswib");
Setlinetexture(180,SIDE_FRONT,TEXTURE_MIDDLE,"litebeam");
Setlinetexture(180,SIDE_BACK,TEXTURE_MIDDLE,"litebeam");
Thing_Activate(181);
Delay(10);
Suspend;
Light_Changetovalue(177,64);
Light_Changetovalue(179,64);
Activatorsound("Lightoff",220);
Setlinetexture(178,SIDE_FRONT,TEXTURE_BOTTOM,"liteswia");
Setlinetexture(180,SIDE_FRONT,TEXTURE_MIDDLE,"-");
Setlinetexture(180,SIDE_BACK,TEXTURE_MIDDLE,"-");
Thing_Deactivate(181);
Delay(10);
}
Edit:
Adding Clientside to both scripts and having a small delay before the dynamic light seems to have solved the problem.
[spoiler]
Code: Select all
Script 1 OPEN Clientside
{
Delay(1);
Thing_Deactivate(181);
}
Script 11 (void) Clientside
{
Light_Changetovalue(177,128);
Light_Changetovalue(179,220);
Activatorsound("Lighton",220);
Setlinetexture(178,SIDE_FRONT,TEXTURE_BOTTOM,"liteswib");
Setlinetexture(180,SIDE_FRONT,TEXTURE_MIDDLE,"litebeam");
Setlinetexture(180,SIDE_BACK,TEXTURE_MIDDLE,"litebeam");
Delay(1);
Thing_Activate(181);
Delay(10);
Suspend;
Light_Changetovalue(177,64);
Light_Changetovalue(179,64);
Activatorsound("Lightoff",220);
Setlinetexture(178,SIDE_FRONT,TEXTURE_BOTTOM,"liteswia");
Setlinetexture(180,SIDE_FRONT,TEXTURE_MIDDLE,"-");
Setlinetexture(180,SIDE_BACK,TEXTURE_MIDDLE,"-");
Delay(1);
Thing_Deactivate(181);
Delay(10);
}