Space Engineers

Space Engineers

Whip's Auto Door and Airlock Script
568 Comments
Commander_Idiot Mar 1 @ 12:06pm 
Nvm, apologies for my stupid question. I didn't read far enough.
Commander_Idiot Mar 1 @ 11:56am 
Will this work on an airlock with three doors? One leading to the interior and two to the exterior? If it does work, is it just following the same steps with the names?
Elafis Nov 7, 2024 @ 7:21pm 
it is possible make some update if ship is in atmosfer? outter door open immidiately without depressure becouse ouside is pressure? Or for double hangar door possibile open both doors together if both side is (de)pressure? Thank you a lot :)
NekoJess Nov 6, 2024 @ 12:45pm 
[Rose]Noot Try checking the code again.
Adolf Rizzler Nov 6, 2024 @ 10:13am 
Im not sure what im doing wrong, I cant get the airlock part to work, I have two connected doors named [Garage] Airlock Exterior and [Garage] Airlock Interior, however the boths doors can be opened without the other being closed. Any suggestions?
Whiplash141  [author] Oct 23, 2024 @ 4:37am 
This script finds every door not name tagged with "Ignore". It does not currently use groups.
PrinceSporus Oct 23, 2024 @ 3:19am 
Does it work with groups or do I need to rename each individual block?
Whiplash141  [author] Sep 29, 2024 @ 12:28am 
Yep, set "Ignore all hangar doors" in the program block custom data to false
DjFrost Sep 28, 2024 @ 1:10am 
Does the auto close function work with Vanilla Hangar Doors, and if so, how do I get it to work, as I cannot figure it out lol
BCMortis Sep 20, 2024 @ 3:14am 
Can I make a small request? Either an option to (or a different script) that ONLY manages specific doors. For example, I use a lot of modded window shutters on my base, and with most auto door scripts, I end up having to manually go through and exclude dozens of shutters and interior doors I don't want the script to keep closing. Would be a lot more convenient if I could label only the doors I want the script to manage and everything else is excluded by default.
VGAstudent Aug 18, 2024 @ 6:46pm 
(I could imagine a shortcut to keep the blastdoors from being affected by the close door command would be to shut the blast door blocks off, and turn them on followed with a close command to close them fast during a leak.)
VGAstudent Aug 18, 2024 @ 6:32pm 
I'd love to see a Blast Door option you could trigger to close if a room became de-pressurized; Is there a run argument you can create to close blast doors when an room no longer pressurized condition is met on a vent? like "Blast Doors Close" and "Blast Doors Open"?
Gontarekt Aug 16, 2024 @ 7:33pm 
Hm, I thought of that, but I prefer how this script handles it, with the changing from Blue to Blinking Red, it just looks so much cooler.
Whiplash141  [author] Aug 16, 2024 @ 7:31pm 
if you just want flashy lights when a door opens, i think the event controller might work
Gontarekt Aug 16, 2024 @ 7:25pm 
Well bugger :wrongpig:
Whiplash141  [author] Aug 16, 2024 @ 7:20pm 
nope, sorry
Gontarekt Aug 16, 2024 @ 4:14pm 
Frequently use this script, but is it possible to use the Airlock System Light + Sound Blocks without having it lock the doors (Blinking lights / alarm when any door of an airlock is open)? I used to use the airlock system frequently, but the locked doors do get a bit painful after a while.
Whiplash141  [author] Jul 14, 2024 @ 10:17pm 
I do see one potential issue here: Your airlock doors are named in the pattern of "Sliding Hatch Door - Airlock Exterior". This means that the code detects the airlock prefix as "Sliding Hatch Door -". Anything before the airlock suffixes is treated as the name tag.
Whiplash141  [author] Jul 14, 2024 @ 10:15pm 
I see no blocks on this ship with the name tag "... Airlock Light" or "... Airlock Sound". Is this the right blueprint?
Sean W. Jul 14, 2024 @ 8:05pm 
Here is a blueprint for you to look over.
https://steamcommunity.com/sharedfiles/filedetails/?id=3280647837
Whiplash141  [author] Jul 14, 2024 @ 9:56am 
Have a blueprint i can look at?
Sean W. Jul 14, 2024 @ 9:18am 
Yes
Whiplash141  [author] Jul 14, 2024 @ 7:52am 
You need the prefix on those block names as well. Do you have the same airlock prefix on all the airlock doors, the light, and the sound block?
Sean W. Jul 14, 2024 @ 5:26am 
Yes, I made sure to check all ownership. And I used the exact names in the script "Airlock Light" and "Airlock Sound" but it's still not working.
Whiplash141  [author] Jul 14, 2024 @ 3:00am 
give me an example of the names you are using. Also, have you checked ownership of all blocks?
Sean W. Jul 13, 2024 @ 8:26pm 
I use this script a lot. But there is something wrong when I try to use it for lights and sound blocks. For some reason, the script isn't recognizing the lights and sound blocks even when I name them exactly how the script tells me to.
Whiplash141  [author] May 31, 2024 @ 11:31pm 
This script does not control airvents at all. It simply prevents you from spacing all of your oxygen out of a simple airlock. If you want to preserve air, simply set the airvent in your airlock to always depressurize.
DoPa May 31, 2024 @ 8:33pm 
Hi, it works quite well but one thing is missing. Before the airlock opens, the pressure in the airlock should decrease and when I'm in the airlock I should blow it in again so that oxygen isn't constantly lost.
Darth Porgus Feb 3, 2024 @ 10:36pm 
Thanks for the response!
Deapri Feb 3, 2024 @ 6:29am 
@Darth Porgus Isy's script interprets the positioning of the doors and inherits behavior based on that with control in exclusions. I feel this script offers more overall control of the setup and effective application. More setup is required however it is my opinion this script better suits my uses.
Whiplash141  [author] Feb 3, 2024 @ 5:43am 
This is 4 years older. Aside for that I have zero clue because I only use scripts I write.
Darth Porgus Feb 2, 2024 @ 10:10pm 
How does this differ from isy's simple door script?
Deapri Jan 19, 2024 @ 10:37pm 
Which I could edit a post, anyway, the setting is Ignore all hangar doors=true set it to false
Deapri Jan 19, 2024 @ 10:36pm 
Hangar doors are excluded by default change the custom data on the programming block to enable them.
xtravince Jan 13, 2024 @ 9:10pm 
hi, this script is great thank you very much :steamthumbsup: , but when I install a hangar door it doesn't work with it, it doesn't close and there is no custom data (I waited for the refresh time)
Bacon Oct 1, 2023 @ 4:45am 
Thank you very much :)
Whiplash141  [author] Oct 1, 2023 @ 4:23am 
Of course, these scripts are here for you to use
Bacon Oct 1, 2023 @ 3:47am 
Can I use this script for a ship I'm currently building? I'm going to post the ship on the workshop and wanted to make sure you're good with it. :)
Whiplash141  [author] Sep 28, 2023 @ 12:23pm 
Ignorance is bliss, and it seems you have an abundance of both.

Your profile was a hilarious shrine of stupidity, but you privated it :'(
Slinkerdeer Sep 28, 2023 @ 1:30am 
Pfff hahahaha! sadder than I thought, knew you would also thank me for the points xD, enjoy the meaningless internet numbers
Slinkerdeer Sep 28, 2023 @ 1:27am 
Hahahah I knew when I made that typo you would point it out because you have literally nothing else to respond with
Whiplash141  [author] Sep 26, 2023 @ 12:34pm 
I'll label your chin with deez nutz. Also how'd you manage to misspell "auto"? The helmet must have slid over your eyes.

:missing: <- The contents of your mind represented by a texture (thanks for the free steam points, I'm enjoying them lol)
Slinkerdeer Sep 26, 2023 @ 10:28am 
Once again, its labelled "auto door", you said "hence title" when I asked about it not auo opening the doors. Lmao how stupid can you be
aTruckgril Beverly ✿ Sep 26, 2023 @ 12:03am 
@Slinkerdeer do you wear that helmet when you use the stove or something? I can see reading comprehension is beyond you
Firewarrior44 Sep 25, 2023 @ 11:56pm 
> This script will close any door once it has been fully open for over 3 seconds (10 seconds for hangar doors).

The first line of the description is really unclear, please fix. Also Does Is this weapon core compatible?
Whiplash141  [author] Sep 25, 2023 @ 11:55pm 
Also, here are some resources that you'll definitely find helpful: https://www.wikihow.com/Teach-Yourself-to-Read
Whiplash141  [author] Sep 25, 2023 @ 11:52pm 
:jarate: <- you irl
Slinkerdeer Sep 25, 2023 @ 11:07pm 
Oh, and enjoy the jester
Slinkerdeer Sep 25, 2023 @ 11:07pm 
No i cant be arsed with someone who cant label something, ive used this instead - https://steamcommunity.com/sharedfiles/filedetails/?id=317276089

Notice what he did..? Here, I'll make it REAL easy for you
"A very simple script to make doors open/close when the player is near them." at the top of the description. At least this modder isn't a fking moron
Whiplash141  [author] Sep 24, 2023 @ 6:24am 
How bout you auto close yo damn mouth and read a description

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠴
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡴⠑⠁⠀
⠀⢀⣠⣤⡀⠀⠀⣠⠞⠁⠀⠀⠀⠀
⢰⣿⣿⣿⣿⡆⠊⢡⠀⠀⠀⠀⠀⠀
⠈⢿⠿⣯⢈⡟⠋⡆⣄⠀⠀⠀⠀⠀
⠀⢀⠁⡱⠕⠐⠎⠪⣈⠆⠀⠀⠀⠀
⠀⠈⠋⠀⠀⠀⣠⠴⣤⠺⣥⠀⠀⠀
⠀⠀⠀⠀⢀⡜⠁⠀⠀⠀⠀⠱⣄⠀
⠀⠀⠀⠀⣭⠀⠀⠀⠀⠀⠀⠀⠘⡇
⠀⠀⠀⠀⠘⣆⠀⠀⠀⠀⠀⠀⢸⠁
⠀⠀⠀⠀⢀⣜⣂⠀⠀⠀⠀⢀⣎⡀
⠀⠀⠀⠈⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀