Space Engineers

Space Engineers

Not enough ratings
Airlock
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.694 KB
20 Mar, 2015 @ 1:50pm
28 Jul, 2015 @ 8:23pm
4 Change Notes ( view )

Subscribe to download
Airlock

Description
AIRLOCK (Oxygen)

An Airlock script to prevent Oxygen depressurisation of a Room. Edit the Group Name for the First and Second set of doors to use, you can add as many groups of doors as you want. Using a Button panel and two timer blocks you can setup an Airlock that will only open the doors if the opposite doors are closed. To use;

• Add a programmable block and browse the workshop to add the code to the block.
• Add your First Doors for your First Room to a new Group. e.g ''Airlock_Doors_01_Group_01".
• Add your Second Doors for your Second Room to a new Group. e.g "Airlock_Doors_02_Group_01".
• Edit the script to add your new Group Names. Change the values inbetween "GROUP VALUES START" and "GROUP VALUES END" for the "DoorsAirlockGroupNames01" and "DoorsAirlockGroupNames02" values.
• Click "Check Code" and "Remember & Exit" to finished editing.
• Place 2 Timer Blocks. Set the First Timer Block delay to 1 and setup the Actions to Run the programmable block and to Start the timer on the second Timer Block.
• Go to your second Timer Block, add the delay to what ever you want the airlock doors to wait before opening, Recommended is 5 seconds. Setup the Actions to Run the programmable block and thats all.
• Place a Button Panel and setup the Action to Trigger your First Timer block rigtht away.

OPTIONAL

• Add your Button Panels to a Group.
• Edit the Programmable Block "CtrlPanelsAirlockGroupNames" value to add the Name of your Group of Button panels.

Now when the Button panels are used it will turn off "AnyoneCanUse" untill it is ready to use again. This prevents other users from pressing the Button multiple times.

Update v2.1.2

Emergancy Stop Buttons (Optional).
Variable Names Changed.
Performance Change.

The Emergancy Stop button gives the player the option to stop the Airlock and reverse the process. Variable Names have been change to prevent clashing with Group Names. To use;

• Add a Light block, does not need to be visible, used to indicated to the script that the Emergancy button has been pressed while the Airlock is in process. Torn the block off and name it any name. e.g "Light Emergancy Stop".

• Edit the script to add your new Light Name. Change the value inbetween the 2 Double Quotation Marks for the Variable called "EmergStopLightName".

• Place 2 Timer Blocks. Set the First Timer Block delay to 1 and setup the Actions to Turn on the Light, Stop the "Timer_Block_Airlock_01_Stop" Block and Start the Second Timer block (The script needs Time after the Light Block has been turned on before running the script)..

• Change the second Timer Block to a delay of 1 and Setup the Actions to Run the script, that's all.

• Add the "Timer_Airlock_01_Emergancy" to a control panel as Trigger Now.

Remove the Control Panel from your Group of Airlock Control Panels if you are using it on the same panel as the Start button. If you have a seperate set of Buttons for the Emergancy Stop button then set "AnyoneCanUse" as unchecked.

Update v2.2.2

Bug Fixed

Block Groups function changed in Space Engineers version 1.091.
9 Comments
Don Leo 9 Feb, 2018 @ 9:03pm 
Seems to be broken. Updates probably borked it.
Tommy Lee 14 Apr, 2016 @ 8:16am 
Dont work for me...but I am newbie with this :(
Sythius  [author] 23 Mar, 2015 @ 9:12am 
Yes i might add that in as an option, but if you change the blocks so your the owner, make sure that you change the programmable block, open and save it again then they won't be able to access the door panel.
Morphik 23 Mar, 2015 @ 6:01am 
Sythius, you should make it turn the doors off after they close or open. that way a person cant accidently open the door by the pad on the door.
Sythius  [author] 22 Mar, 2015 @ 6:27pm 
Ah ok, that's good to know, not had chance to set up some designs. Tomorrow i will bring out the Emergancy button update just incase you want that extra 4 seconds to see if you forgot to put your helmet back on before the air gets depressurized, but it will be optional.
Morphik 22 Mar, 2015 @ 5:45pm 
I set this up with a third timer on a 1 second delay to start off the first timer, this third timer is set to toggle the depressurize on the air vent. The default 5 second delay is more than enough time to depressurize a moderate sized room. My Airlocks are 1x1x3 Being [door][button][door] the Air Vent is directly above the button panel.
CalocoDoesGames 22 Mar, 2015 @ 7:49am 
alright sweet
Sythius  [author] 22 Mar, 2015 @ 4:22am 
yes that's right, i will be adding an emergancy stop button update soon and i will add a new video with an example of the Airlock with oxygen being vented in, just in case you forget to put your helmet back on you will be able to press the emergancy stop button and reverse the process. I will also add a video with some example designs.
CalocoDoesGames 22 Mar, 2015 @ 3:12am 
so igues if you find out how long it takes for an air vent to fill the airlock you sould be able to edit it so it de presurises and then presurises right?