Landing Gear Module
The Landing Gear module allows the user to control landing gear and magnetic plate blocks on the grid.
Commands
lock
Lock a Landing Gear or group of Landing Gear.
gear/lock <LandingGear|Group>
Example
gear/lock MainLandingGear;
unlock
Unlock a Landing Gear or group of Landing Gear.
gear/unlock <LandingGear|Group
Example
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
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
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:
Key | Trigger |
---|---|
onLock | Run when a landing gear block locks. |
onUnlock | Run when a landing gear block unlocks. |
onReady | Run when a landing gear block is ready to lock. |
Example
Imagine our landing gear has a status light we want to view elsewhere:
[hooks]
onLock=light/color "Gear Indicator Light" red;
onUnlock=light/color "Gear Indicator Light" green;
or
[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
.