Space Engineers

Space Engineers

Airlock Manager
Noy  [developer] 2 May, 2015 @ 2:02pm
Tutorial
The following is a tutorial on how to setup up the airlocks, and sectors:

First setup up a programmer block with the script, then set up a timer block to run the program every 1 sec.

Next, determine if the airlock or airlocks are meant to be an interior or exterior airlock(s). The difference being that, interior airlocks are not meant to be directly exposed to space and instead, serve as an emergency bulk head if there is a hull breach, or the like. Where as, Exterior airlocks are meant to have a side exposed to harshness of space.

once you've identified the type of airlock(s) you are setting up, next identify the interior areas separated by interior airlock(s), if any. We'll refer to these as sectors.

decide on names for each airlock and sector you've have created; and begin tagging all doors and airlocks as follows:

Airlock Vent [Airlock: N>{name of airlock}]
Sector Vent [Sector: N>{name of sector}]

Interior airlock:
Door [Airlock: N>{name of airlock}] [Sector: N>{name of sector}]

Exterior airlock:
Door [Airlock: N>{name of airlock}: S>out]
Door [Airlock: N>{name of airlock}: S>in]
--OR--
Door [Airlock: N>{name of airlock}] [Sector: N>{name of sector}]

all of the airlocks should be online if you applied the tags correctly.

next is settings:

airlock timing behavior is dependent on three settings:
- close delay (duration the doors stay wide open.)
- state change delay (how long it is expected to take, for the doors to open/close.)
- auto open delay (minimum time the script waits, to auto open the other side.)
* The largest value in each set of inner and outer doors, for each setting, is the the duration used by each set, for each setting.
* Auto open is disabled by default, and enabled if a value is set.

Standard doors take about 1-2 seconds to open/close, where as hangers take about 8-9secs. As such it's advised to apply the tag "C>2" or "C>9", to you doors accordingly; to make them function smoothly without errors.
Last edited by Noy; 2 May, 2015 @ 11:06pm