BarbyFN Posted August 14, 2015 Share Posted August 14, 2015 I have made a "General Switch" that turns off all lights, also I have made it to activate their switches (to match their status, red: off, green: on), this is the script: if LightUtility.GetDisabled ;Do nothing else LightUtility.Disable SwitchUtility.Activate endif The General Switch works perfect, if the lights are off, it does nothing, and if any lights are on, it turns off these lights and changes its switches to red. But I have a particular issue, if (since I load the game), I haven't trigger a switch, this switch is not affected by the script. For example: I load the game and turn some light on, or off (is the same), then I activate the General Switch and all the lights turns off, no matter if I have interacted with them in this session (this part of the script works perfect), but only the switches I have triggered are changed to red, the rest of the switches that I haven't touched remains green. To resume: If I trigger ALL switches in this current session, all of them turns to red with the General Switch. But if I have not triggered a switch, its light will turns off anyway, but the switch will not be affected (it remains green even with the light off). Am I doing something wrong or is a problem of the game itself? Link to comment Share on other sites More sharing options...
Recommended Posts