Space Engineers

Space Engineers

Not enough ratings
Airlock Server script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
3.101 KB
15 May, 2016 @ 9:00am
1 Change Note ( view )

Subscribe to download
Airlock Server script

Description
NOTE: this is currently not usable.

its not usable because i wrote this a long time ago and i never wrote down what the arguments for the sensors and timers need to be. i am currently in the process of reverse-engineering my code to figure that out.

each airlock needs 2 doors, 2 sensors and 1 timer. put each devices name in their place in the table below
(there are 4 example airlocks in the table, one airlock is one row.)

the table looks like this, enter the names of each device into the table:
static string[][] groups = new string[][]{
new string[] {"Door A0", "Door B0", "Sensor A0", "Sensor B0", "Timer Block 0", "1.2", ""},//G~0
new string[] {"Door A1", "Door B1", "Sensor A1", "Sensor B1", "Timer Block 1", "1.2", ""},//G~1
new string[] {"Door A2", "Door B2", "Sensor A2", "Sensor B2", "Timer Block 2", "1.2", "$DIS"},//G~2
new string[] {"Door A3", "Door B3", "Sensor A3", "Sensor B3", "Timer Block 3", "1.2", "$CD $DIS"}
//add as many of these as you like
};
Settings: put the codes of the settings you want in this field. you can mix and match them, its fine. (only one setting of each type will be applied)

Door Settings:
$CD: close doors - closes both doors after airlock has finished. (for security, but its slower to use)
$CA: close door A - closes door A after airlock has finished (and opens B)
$CB: close door B - closes door B after airlock has finished (and opens A)
BLANK - exit door will ramain open (its faster but less secure)

Misc Settings:
$DIS: disables the airlock and leaves doors open
$LCK: disables the airlock and leaves doors closed