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

Landing Gear Module

The Landing Gear module allows the user to control landing gear and magnetic plate blocks on the grid.

  • Commands
    • lock
    • unlock
    • toggle
    • auto
  • Hooks

Commands

lock

Lock a Landing Gear or group of Landing Gear.

gear/lock <LandingGear|Group>

Example

Terminal
gear/lock MainLandingGear;

unlock

Unlock a Landing Gear or group of Landing Gear.

gear/unlock <LandingGear|Group

Example

Terminal
gear/unlock MainLandingGear;

toggle

Toggle the lock state of a Landing Gear or group of Landing Gear between Locked nad Unlocked.

gear/toggle <LandingGear|Group>

Example

Terminal
gear/toggle MainLandingGear;

Note

For more info about Landing Gear states, see LandingGearMode in MDK-SE.

auto

Set the AutoLock state of a Landing Gear or group of Landing Gear.

gear/auto <LandingGear|Group> <true|false>

Example

Terminal
gear/auto MainLandingGear true;

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 landing gear block locks.
onUnlockRun when a landing gear block unlocks.
onReadyRun when a landing gear block is ready to lock.

Example

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

MainLandingGear > Custom Data
[hooks]
onLock=light/color "Gear Indicator Light" red;
onUnlock=light/color "Gear Indicator Light" green;

or

Mother > Custom Data
[hooks]
MainLandingGear.onUnlock=light/color "Gear Indicator Light" green;
"Boom Mag Plate".onLock=rotor/rotate BoomRotor 90;

Note

Landing Gear hooks are also fired when the Landing Gear is used for parking via a toolbar action or the parking button P.

Last Updated: 3/21/25, 9:52 PM
Contributors: Luke Morrison
Prev
Hinge Module
Next
Light Module