I have a large room with a few lights sources. I am able to get them all to work together as one (through the helpful advice of using an xMarker to connect them all). This time, however, I'd like to have a few switches in this room to control the lighting.
I'd like the switches to not only all control the xMarker, but also effect eachother. Using the generic switch with the red and green light, I'd like it when one switch turns the light on, they all turn to green, setting themselves to an on state, so if I go to the other end of the room and hit the switch there, it turns off the xMarker
This is how far I've gotten with this script. This is what is in switch box 1
ScriptName VDMainHallLightSwitchScript01short OnBegin OnActivate if(On == 0) if IsActionRef player == 1 VDMainHallLightSwitch02Box.Activate VDMainHallLightSwitch03Box.Activate VDMainHallLightSwitch04Box.Activate VDMainHallLightMarker01.Enable endif Activate set On to 1 else if IsActionRef player == 1 VDMainHallLightSwitch02Box.Activate VDMainHallLightSwitch03Box.Activate VDMainHallLightSwitch04Box.Activate VDMainHallLightMarker01.Disable endif Activate set On to 0 endifEnd
the other boxes have a similar script, but change out the VDMainHallLightSwitch#Box.Activate for whatever it isn't. When I hit the first switch, it turns on the marker and lights as expected, and seems to sometimes effect the other switches, but not always, and I seem to have to toggle a switch on and off to get the xMarker to react.