Merlin of Mines - Space Engineers

A set of useful scripts for aspiring Space Engineers!

View on GitHub

Door Block Handler

This block handler can be used to open and close doors, including regular doors and Airtight Hangar Doors. The properties are the same for both.

Default Primitive Properties:

Default Directional Properties

“Enabled” Property

Enables or Disables the given block

#Enable Block
enable "My Door"
set "My Door" to enabled
turn on "My Door"

#Disable Block
disable "My Door"
set "My Door" to disabled
turn off "My Door"

“Power” Property

Turns on or off power to the block. Effectively the same as the Enabled property.

#Turn on
turn on power to "My Door"
power on "My Door"

#Turn off
turn off "My Door"
power off "My Door"

“Open” Property

Gets/Sets whether the door is open. If the door Ratio > 0 the door is considered Open. So while a door is closing it is still considered open.

when the "Outer Door" is opened
  Print "Welcome Home!"

close the "Outer Door"
close the "Bombay Doors"
open the "Storage Bay"

“Ratio” Property

Returns a value from 0 - 1 representing the Open Ratio for the given door(s). 0 means fully closed, 1 means fully open.

Print "Open Ratio: " + "My Door" ratio