Jump to content
⚠ Known Issue: Media on User Profiles ×

Super Simple Light Switch Tutorial


cain071546

Recommended Posts

Here is my Super Simple Light Switch Tutorial

it took me forever to figure this out so maybe this will help people

 

no persistant references

no reference ID's

no new forms required

 

Start by placeing a GenElecSwitch01

then place a xmarker

then 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 AALIGHTSWITCH1SCRIPT
ref rLinkedRef
Begin OnActivate
if rLinkedRef == 0
set rLinkedRef to GetLinkedRef
endif
if rLinkedRef.GetDisabled
rLinkedRef.Enable 0
else
rLinkedRef.Disable 0
endif
Activate; only required if the switch uses a default activation action
End

 

 

 

And Voila You Have A Working Light Switch With Correct Animation!

 

 

 

Link to comment
Share on other sites

  • 1 month later...
  • 6 months later...

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 by modmeca
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...