Light Module
The light module allows the user to control lights on the grid. Players can now dynamically control light color and blinking. Use this to take your landing pads and warning lights to the next level.
Commands
color
Set the color of a light or group of lights. The color of the light is RGB ie. 255,255,255
.
light/color <Light|Group> <color>
You have access to the following colors which may be used in place of their RGB values:
Name | RGB | Hexidecimal |
---|---|---|
255,0,0 | FF0000 | |
0,255,0 | 00FF00 | |
0,0,255 | 0000FF | |
255,255,0 | FFFF00 | |
255,165,0 | FFA500 | |
0,255,255 | 00FFFF | |
255,0,255 | FF00FF | |
255,255,255 | FFFFFF | |
0,0,0 | 000000 |
Example
# by name
light/color LandingLight red;
# by RGB
light/color LandingLight 255,0,0;
blink
Make a light blink at an interval in seconds.
light/blink <Light|Group> <interval> [--options]
You have access to several blinks which may be used instead of the value in seconds:
Name | Blink Interval (s) | Blink Length (%) | Blink Offset (%) | Example |
---|---|---|---|---|
off | 0 | 0 | 0 | |
slow | 3 | 30 | 0 | |
med | 1 | 50 | 0 | |
fast | 0.25 | 50 | 0 |
Options
Option | Values | Unit | Description |
---|---|---|---|
length | 0 - 1 | int | Set the blink length of the light. Default is 0.5 (50%). |
offset | 0 - 1 | int | Set the blink offset of the light. Default is 0 (0%). |
Example
# using preset
light/blink SignalLight slow;
# using values and options
light/blink SignalLight 3 --length=0.3 --offset=0;
reset
Reset a light or group of lights to white and cease any blinking.
light/reset <Light|Group>
Example
light/reset SignalLight;