legoman600 Posted November 15, 2010 Share Posted November 15, 2010 Ive been looking to augment my current mod with a door that is opened and closed remotely. How would I link the swith and door and script it, so that the same witch both opens and closes the door? Link to comment Share on other sites More sharing options...
SmileyCat Posted November 15, 2010 Share Posted November 15, 2010 scn myDoorSwitch begin onActivate if myDoorRef.GetOpenState == 1 myDoorRef.SetOpenState 0 else myDoorRef.SetOpenState 1 endif end Set the doors reference ID to myDoorRef and it should work fine. Link to comment Share on other sites More sharing options...
legoman600 Posted November 15, 2010 Author Share Posted November 15, 2010 scn myDoorSwitch begin onActivate if myDoorRef.GetOpenState == 1 myDoorRef.SetOpenState 0 else myDoorRef.SetOpenState 1 endif end Set the doors reference ID to myDoorRef and it should work fine. so this would go into the script of the spitch and then i would set the active parent of the door the switch? thanks Link to comment Share on other sites More sharing options...
legoman600 Posted November 15, 2010 Author Share Posted November 15, 2010 When I go into the base editor of the switch and click on the box with the three dots next to the script nothing happens. I admit to defeat with GECK, I am completely clueless , would anyone be willing to give me step by step instruction that are comprhensive to idiots like me ? Link to comment Share on other sites More sharing options...
SmileyCat Posted November 15, 2010 Share Posted November 15, 2010 You know the menubar under the menu options (file, edit, view, world etc) press the pencil, then in the script window, press script and then new, write the code and press the floppy disk, then close it and add the script to the switch. Link to comment Share on other sites More sharing options...
Recommended Posts