by ElDavo

Script support for automatic light switching

What is LightUp?

LightUp is a Trainz GameScript that can be used as is or as the basis for custom scripts to control locomotive or other rollingstock lights. As it is provided here the script will control 2 tail lights, 3 white marker lights and 2 headlamps at each end of the loco. The lighting pattern conforms to the UK Group standards with only a single headlamp being illuminated, left during daylight hours and right during darkness.

The attachments and configuration entries needed are detailed in the source of the script itself.

The script

The source code for the LightUp script may be downloaded here


If you have comments, suggestions, or questions regarding CoupleStar please feel free to contact ElDavo via e-mail at
Copyright Dave Renshaw (Eldavo's Railway Emporium) 2006