Jump to content

Decontamination room doors


eleglas

Recommended Posts

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

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

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

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 MyLink

Set 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

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
End

Cipscis

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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