Space Engineers

Space Engineers

Not enough ratings
AutoAirlock
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.690 KB
4 Sep, 2018 @ 3:29am
9 Sep, 2018 @ 7:30pm
2 Change Notes ( view )

Subscribe to download
AutoAirlock

Description
AutoAirlock
by jubbajubbjubb / not-a-cylon

Update version 4.0- increased performance by a huuuuge amount. Perfectly fine for single player, almost server friendly.



Actually automatic! Absolutely no naming necessary.

Instructions
Just run the script once.The script will give an unreachable code warning.
Ignore the warning- it has no effect on the code.

Place two sliding doors with their opening sides connected. As long as their opening sides are connected, the script will add the automatic airlock function.

How it works
The script assumes that if two sliding doors are connected, then the pair is an airlock.
If one side of the airlock is opened, the other side is disabled. Airlock will cycle closed and both sides will be enabled for use again.

Optional configuration
Set isExcludedEnabled to true and add the excludedTag to the sliding doors that must have the automatic functionality disabled.
Change the waitTime to change airlock cycle speed. Lower for faster, higher for slower.

Warnings/Disclaimers
Will only work with sliding doors.
Author is not responsible for injury or loss of life from not opening the pod bay doors

To Do
Learn how to code.
Learn how to use yielding enumerator[github.com] to make a much much much more efficient code.
5 Comments
Misteryx5 5 Oct, 2023 @ 1:34pm 
best script ever, love it :D

script still functoinal, just need to remove some lines: 30, 131 and everything past 471 as its not rly needed

not a coder but have it-background, if i find out how to upload scripts to workshop ill update it with this here as credit
Dots 7 Jan, 2021 @ 1:52pm 
3 years later script is not working anymore and throws a bunch of errors!
mazrados 7 Aug, 2020 @ 5:09pm 
Sometimes it enables second door too fast and it depressurises room.
I think that's the case if I go in strait line. It's just a bit too fast.
aczel2 24 Jan, 2020 @ 11:23am 
Best Airlock script !!!
Misteryx5 26 Apr, 2019 @ 1:59pm 
awsome skript, but currently it only closes the doors for me, does not disable and do the airlock thing shown in the llovely video. is there a problem wiht the current version of SE present? or does the skript simply need an update?