eleglas Posted March 16, 2009 Share Posted March 16, 2009 I'm making a decontamination room with 2 doors and one terminal inside, when I chose one option I want it to lock one door and open the other, and the same with the other option. Does anyone know how to do this? I've been looking around other maps, and found a code to use, but that needs a linked reference, which only works with one door at a time, so I need to do it another way. Also, I want it so when I use either of the options, my radiation level is reduced to 0. Thanks Link to comment Share on other sites More sharing options...
genovauk Posted March 16, 2009 Share Posted March 16, 2009 Have you looked at the code for where the water purifier is, I sure that does what uou need it to Link to comment Share on other sites More sharing options...
Cipscis Posted March 16, 2009 Share Posted March 16, 2009 You can link the doors to one another, so the linked reference of each door is the other door. To reduce your radiation level, you'll want to change the "Rads" AV. You could do this via script, or with an effect (have a look at the "RestoreRadiationLevel" base effect). Cipscis Link to comment Share on other sites More sharing options...
eleglas Posted March 17, 2009 Author Share Posted March 17, 2009 I'l try that, but where is that thing in the purifer, genovauk? Link to comment Share on other sites More sharing options...
eleglas Posted March 17, 2009 Author Share Posted March 17, 2009 Err, not sure how to get it working, I tried linking the doors together, but didn't know where to go after that, any more input? Plus, that radiation effect didn't work. Link to comment Share on other sites More sharing options...
Cipscis Posted March 18, 2009 Share Posted March 18, 2009 Err, not sure how to get it working, I tried linking the doors together, but didn't know where to go after that, any more input?From what you said before, I assume that you have a script to use that, when the door with the script attached is opened, its linked reference is closed? Just attach that script to both of the doors. Plus, that radiation effect didn't work.It does work - this is the effect used by things like RadAway - you must have just not used it correctly. How are you trying to use it? Cipscis Link to comment Share on other sites More sharing options...
eleglas Posted March 18, 2009 Author Share Posted March 18, 2009 I don't know how to write a script for this, I'm very new to modding, the most I have ever done is making my own armor and that with my own effects, but I never used a script, what I used in the terminal was like this: Ref MyLinkSet MyLink to getLinkedRef And then just use a lock or unlock code, but that only works for one door. If I need to make a script, any chance you can write one on here and I'll copy it to GECK? Link to comment Share on other sites More sharing options...
genovauk Posted March 18, 2009 Share Posted March 18, 2009 the purifier is in the jefferson memorial the is a button there that controls 2 doors. 1 closes then one opens Link to comment Share on other sites More sharing options...
eleglas Posted March 18, 2009 Author Share Posted March 18, 2009 That script is to complicated for me to change and use on my doors. Can someone make a simpler one for me? Link to comment Share on other sites More sharing options...
Cipscis Posted March 19, 2009 Share Posted March 19, 2009 If all you want to do is close one door when the other is opened (and vice versa), then you could just use something like this:ScriptName LinkedRefOpposingOpenStateSCRIPT ref rLinkedRef Begin OnActivate set rLinkedRef to GetLinkedRef if GetOpenState == 1; Open rLinkedRef.SetOpenState 0 elseif GetOpenState == 3; Closed rLinkedRef.SetOpenState 1 endif Activate EndCipscis Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.