Mother DocsMother Docs
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
  • Mother OS (Ingame Script)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Command Line Interface (CLI)
      • Configuration
      • Modules
    • Core Modules

      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Local Storage
      • Security
      • Intergrid Message Service
    • Extension Modules

      • Air Vent Module
      • Battery Module
      • Terminal Block Module
      • Cockpit Module
      • Connector Module
      • Display Module
      • Docking Module
      • Door Module
      • Flight Control Module
      • Gas Tank Module
      • Gyroscope Module
      • Hinge Module
      • Landing Gear Module
      • Light Module
      • Flight Planning Module
      • Piston Module
      • Programmable Block Module
      • Rotor Module
      • Sensor Module
      • Sound Block Module
      • Thruster Module
      • Timer Block Module
    • Command Cheatsheet
    • Compatibility
    • Examples
  • Powered By Mother

Door Module

The door module allows the user to control doors on the grid.

  • Commands
    • open
    • close
    • toggle
  • Hooks

Commands

open

Open a door or group of doors.

door/open <Door|Group>

Example

Terminal
door/open "Missile Silo Door"

close

Close a door or group of doors.

door/close <Door|Group>

Example

Terminal
door/close "Missile Silo Door"

toggle

Toggle the open state of a door or group of doors.

door/toggle <Door|Group>

Example

Terminal
door/toggle "Missile Silo Door"

Hooks

The following hooks can be define in the block's Custom Data, and will be triggered when the corresponding command is called:

KeyTrigger
onOpenActivated when a door is fully open.
onOpeningActivated when a door is opening.
oncloseActivated when a door is fully closed.
onClosingActivated when a door is closing.

Example

Imagine our door is part of an airlock:

OuterDoor > Custom Data
[hooks]
onOpen=wait 10; door/close this;
onClose=vent/pressurize AirlockVent; wait 2; light/blink "Airlock Light" off;

Tips

You can use this to refer to the block itself when targeting it from within its own custom data.

or

Mother > Custom Data
[hooks]
OuterDoor.onOpen=
| light/blink "Airlock Light" fast; 
| vent/depressurize AirlockVent; 
| wait 10; 
| door/close OuterDoor;

"Inner Door".onClose=
| vent/pressurize AirlockVent; 
| wait 2; 
| light/blink "Airlock Light" off;
Last Updated:: 4/29/25, 9:42 PM
Contributors: Luke Morrison
Prev
Docking Module
Next
Flight Control Module