Space Engineers

Space Engineers

Not enough ratings
Doors Control System
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
2.508 KB
26 Nov, 2017 @ 1:44pm
1 Change Note ( view )

Subscribe to download
Doors Control System

Description
TL;DR:
This is my doors auto closing script. There dozens of such. But this is mine.









...










What, you want more info? Okay.
This script will automatically close doors after a specific time. Also, script allows forming a simple semiauto airlock. For this pair of doors should have the same name. While one of such pair door opened, other is turned off, so player can't rush through an airlock. Script don't distinguish exterior and interior doors. Also, script ignores hangar doors.
You can set some custom parameters for any door, just one of this keywords in door's Custom Data:
- DCS_EXCLUDE - script will ignore this door, and will not close this door, and will not form an airlock with this door.
- DCS_NOCLOSE - script will not close this door but will form an airlock with this door, if it can.
- DCS_CLOSETIME <value> - will set custom time before auto close in seconds.

Script setup:
Just put script in Programmable Block, compile and save. Done.
1 Comments
Aggelus 10 Dec, 2018 @ 9:34am 
Simple and practical, thank you very much.