Space Engineers

Space Engineers

Auto Close Door Advanced
19 Comments
Simmo  [author] Mar 9, 2019 @ 6:52am 
Hi Sanchii.

Open the script from the programming block and look for the text "IGNORE_DOOR_KEY". You can change this value to what ever you like.

By default this is set to "hanger". I have used a value like "manual" in the past. Just remember to add the text "Manual" the names of all the doors to don't want to be auto closed on your grid/ship.

Also remember to recompile the script after changing your door names too.
Kiro Mar 9, 2019 @ 5:11am 
Where do I put the Key command to not close a door?
Simmo  [author] Aug 8, 2017 @ 6:52am 
You can set the script's value DOOR_CLOSE_INTERVAL = 1 and then set the timer block to what ever you want the delay to be.
. Aug 8, 2017 @ 6:15am 
how do you change the close delay time
John CO. Jun 7, 2017 @ 3:29pm 
YAY!!! :p2cube:
hugopnabais May 4, 2017 @ 8:30am 
Thank you, it worked fine! Good job!
Simmo  [author] Apr 24, 2017 @ 8:55pm 
@hugopnabais, in your timer block's actions set it up as follows

1) programable block - run
2) timer block - start

In the properties of your timer block, slide the timer down to 1 second

hugopnabais Apr 24, 2017 @ 5:17pm 
How do I configure Timer to run every second? It only runs once and ends!
Acid Apr 21, 2017 @ 1:39pm 
Timer block set on 'Start' works fine. I guess it really just didn't liked the 'trigger now' option.
Acid Apr 21, 2017 @ 1:26pm 
As far as i knew, it fired only once per second. Timer was set on every second to run the programmable block, and 'trigger now' itself. I'll try 'start' instead of 'trigger now', i guess ?
Simmo  [author] Apr 21, 2017 @ 4:09am 
@Acid, i pulled the version of the workshop and tested it with many doors. It's working fine for me.

Check that your timer block is only firing "once" every second, not many. There a lot of scripts that want you in the timer block's actions to add "both",
- trigger now
- start

This results in the timerblock firing many many times per second.

For this script simply set up the timer block to call "start" only. This will then call once per second. (assuming your timerblock it set to call once per second that is)

Hope this helps
Acid Apr 20, 2017 @ 9:07am 
Game just updated and so couldn't test on server but went solo to try it. Though it seems to be working, i don't get a delay. After opening a door, it closes automatically :/
Simmo  [author] Apr 20, 2017 @ 5:40am 
@Acid, found some spare time :twtimer: and updated the script.

Please check the lastest version and let me know how it goes for you.

Simmo
Acid Apr 20, 2017 @ 4:14am 
Thanks ! I've been looking for autoclose scripts, haven't found an updated vers yet. Looking forward to it !
Simmo  [author] Apr 20, 2017 @ 3:41am 
@Acid, thankx for the heads up. Ill try and get this code updated with in the next few days
Acid Apr 20, 2017 @ 2:24am 
As of 2017-04-20, this script is obsolete. It gave me the following error message.

Program(115.8): Warning: 'IMyDoor.Open' is obsolete: 'Use the Status property instead'
xlodx Jun 22, 2016 @ 8:26am 
Excluding "Hangar Doors" now works perfectly! Thank yoi for the upgrade!
Simmo  [author] Jun 22, 2016 @ 6:27am 
Hey xlodx, thankx for the request and happy to hear you're enjoying the script. I have extended the scrip as per your request, check it out and let me know if it's working for you..

Remember to thumbs up... happy to help :steamhappy:
xlodx Jun 20, 2016 @ 10:53am 
I like this script a lot! Thank you for making this!

If I may ask for a feature:
Please, an option to exclude the "Airtight Hangar Door" or seperate settings for it from all other doors.
:steamhappy: