This controller allows to control one or multiple shift lights that indicates when to shift based on engine RPM.
It allows to set-up multiple steps, which will light up progressively as the engine gets closer to maximum RPM.
Filename | shiftLights.lua |
Path | /lua/vehicle/controller/shiftLights.lua |
Type | Auxiliary |
Usage type | Multiple |
The number of electrics will define the number of stages. The various electrics will light up in the order they are defined.
"outputElectrics": ["led0", "led1", "led2", "led3", "led4", "led5", "led6", "led7"],
Single stage shift light.
"controller": [
["fileName"],
["shiftLights"],
],
"shiftLights": {
"engineName":"mainEngine",
"maxEngineRPMOffset": 400,
"rpmRange": 1000,
"outputElectrics": ["led"],
"flashingOutputElectrics": ["led"],
},
Shift light with 7 stages, with the last two flashing when hitting the rev limiter.
"controller": [
["fileName"],
["shiftLights"],
],
"shiftLights": {
"engineName":"mainEngine",
"maxEngineRPMOffset": 400,
"rpmRange": 3000,
"keepLEDsActive": true,
"hasStallWarning": true,
"outputElectrics": ["led0", "led1", "led2", "led3", "led4", "led5", "led6", "led7"],
"flashingOutputElectrics": ["led6", "led7"],
"flashingAlternateOutputElectrics": [],
},