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

Cockpit Module

The Cockpit module allows the user to control cockpits on the grid and access thrust dampeners, handbrakes, and more.

  • Commands
    • dampeners/on
    • dampeners/off
    • handbrake/on
    • handbrake/off
  • Hooks

Commands

dampeners/on

Turn on thrust dampeners. By default, this command will use your Main cockpit. Otherwise, you may use an optional argument to specify a cockpit.

dampeners/on <Cockpit|Group>

Example

Terminal
# turn on the dampeners of the Main cockpit
dampeners/on

# turn on dampeners for a specific cockpit
dampeners/on RearCockpit

dampeners/off

Turn off thrust dampeners. By default, this command will use your Main cockpit. Otherwise, you may use an optional argument to specify a cockpit.

dampeners/off <Cockpit|Group>

Example

Terminal
# turn off the dampeners of the Main cockpit
dampeners/off

# turn off dampeners for a specific cockpit
dampeners/off RearCockpit

handbrake/on

Turn on the handbrake. By default, this command will use your Main cockpit. Otherwise, you may use an optional argument to specify a cockpit.

handbrake/on <Cockpit|Group>

Example

Terminal
# turn on the handbrake of the Main cockpit
handbrake/on
# turn on handbrake for a specific cockpit
handbrake/on RearCockpit

handbrake/off

Turn off the handbrake. By default, this command will use your Main cockpit. Otherwise, you may use an optional argument to specify a cockpit.

handbrake/off <Cockpit|Group>

Example

Terminal
# turn off the handbrake of the Main cockpit
handbrake/off
# turn off handbrake for a specific cockpit
handbrake/off RearCockpit

Hooks

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

KeyTrigger
onOccupiedRun when a Cockpit is occupied by a player.
onEmptyRun when a Cockpit is empty of players.

Example

When we enter the cockpit, let's ensure our batteries are on auto and our lights are on.

RearCockpit > Custom Data
[hooks]
onOccupied=battery/auto Batteries; block/on SignalLights;
onEmpty=block/off SignalLights;

or

Mother > Custom Data
[hooks]
RearCockpit.onOccupied=battery/auto Batteries; block/on SignalLights;
"Drill Cockpit".onEmpty=block/off MainDrills;
Last Updated:: 4/17/25, 11:39 PM
Contributors: Luke Morrison
Prev
Terminal Block Module
Next
Connector Module