basically same thing is happening now, only the switch moves. I push use, I hear the sound and see the rotation, but no lights go off. I push use again and that switch/light works fine. I go to the next one, same thing - initial push gives sound, but no light goes off until every other push after that.
maybe I will leave it as such until ready for testing, and then maybe someone can figure it out. If u really want, i could send u the test map and script i made for u to see yourself.
Lightswitch
Moderator: Moderators
Ok I see why now it has local.light.lite = 1 at the top change that to local.light.lite = 0 you see in the thread below that after the light turns on it changes local.light.lite to 0 well since it starts on then local.light.lite should be = to 0 right from the start or maybe change if(local.light.lite == 1) to if(local.light.lite == 0) in the first part of the thread and change if(local.light.lite == 0) to if(local.light.lite == 1) in the second part of the thread and also change the local.light.lite = lines as well .
if(local.light.lite == 1) // if you want change the 1 to 0
{
local.light.lite = 0 // then change this to 1 same for the other part of the thread reverse it so that 1 means on and 0 means off
local.light lighton
local.corona show
local.switch rotatexup 60
local.switch waitmove
}
if(local.light.lite == 1) // if you want change the 1 to 0
{
local.light.lite = 0 // then change this to 1 same for the other part of the thread reverse it so that 1 means on and 0 means off
local.light lighton
local.corona show
local.switch rotatexup 60
local.switch waitmove
}

