cain071546 Posted October 12, 2015 Share Posted October 12, 2015 Here is my Super Simple Light Switch Tutorialit took me forever to figure this out so maybe this will help people no persistant referencesno reference ID'sno new forms required Start by placeing a GenElecSwitch01then place a xmarkerthen place a light, any light will work connect the switch to the xmarker via LinkedRef connect the light to the xmarker via enable parent select the xmarker and set to initially disabled use this script on the switch scn AALIGHTSWITCH1SCRIPTref rLinkedRefBegin OnActivateif rLinkedRef == 0set rLinkedRef to GetLinkedRefendifif rLinkedRef.GetDisabledrLinkedRef.Enable 0elserLinkedRef.Disable 0endifActivate; only required if the switch uses a default activation actionEnd And Voila You Have A Working Light Switch With Correct Animation! Link to comment Share on other sites More sharing options...
strungout Posted October 13, 2015 Share Posted October 13, 2015 Thanks for the tut! I Put this in a text file and in my tutorial folder ; ) Link to comment Share on other sites More sharing options...
curvycom Posted November 27, 2015 Share Posted November 27, 2015 So did anyone build a light switch mod, since this is so easy to do?? I can't find one anywhere. I'd like to be able to turn off lights in my house. Link to comment Share on other sites More sharing options...
modmeca Posted June 26, 2016 Share Posted June 26, 2016 (edited) Hello. Is this for Fallout 4? I tried to put this script to a switch and it wont Compile. I keep getting a missing end of file at "if" on line 4. any help here would be great. :-) Update. This is for Fallout 3 and it only took him as long as it took to find and go to Geck.Bethesda.Net and copy and past the Light Switch Script from there. Edited June 26, 2016 by modmeca Link to comment Share on other sites More sharing options...
blove Posted June 27, 2016 Share Posted June 27, 2016 There are only so many ways to do something right. Link to comment Share on other sites More sharing options...
Recommended Posts