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

Connector Module

The connector module allows the user to control connectors on the grid.

  • Commands
    • lock
    • unlock
    • toggle
  • Hooks
  • Configuration

Commands

lock

Lock a connector or group of connectors.

connector/lock <Connector|Group>

Example

Terminal
connector/lock DockingConnector

unlock

Unlock a connector or group of connectors.

connector/unlock <Connector|Group>

Example

Terminal
connector/unlock DockingConnector

toggle

Toggle the lock state of a connector or group of connectors.

connector/toggle <Connector|Group>

Example

Terminal
connector/toggle DockingConnector

Hooks

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

KeyTrigger
onLockRun when a connector locks.
onUnlockRun when a connector unlocks.
onReadyRun when a connector is ready to lock.

Example

Imagine our connector has a status light we want to view elsewhere:

DockConnector > Custom Data
[hooks]
onLock=light/color "Dock Light" red;
onUnlock=light/color "Dock Light" green;

or

Mother > Custom Data
[hooks]
DockConnector.onUnlock=light/color "Dock Light" green;
"Fuel Connector".onLock=tank/stockpile FuelTanks;

Configuration

KeyValueDescription
appDistancemetersThe distance the approaching grid should approach from. Default is 30m.

Example

DockConnector > Custom Data
[general]
; Set the approach distance to 50 meters from the connector face
appDistance=50
Last Updated:: 4/7/25, 8:09 PM
Contributors: Luke Morrison
Prev
Cockpit Module
Next
Display Module