I can't put up the entire .eng file of my "subject" locomotive, but here is the light section dealing with the flashing ditchlights and related headlights. This likely could be adapted to other locomotives just by adjusting the locations of the various lights on the locomotive model. Here is what I've used:
Spoiler
I also added the flash duration line to the .eng file right below the "DoesHornTriggerBell" line as follows:
ORTSHornLightsTimer ( 15 )
As of now, I'm using OR_NY_MG_R151.1 for my experiments.
<Admin's advice:
You can use [сode][/сode] tags for retaining tabulations and highlighting your excerpts.
There is a style option (within posg editor) for automation that, but use it carefully, as it works not as expected...
You can allpy "style/Code" to nothing, then - paste Your fragment between tags, instead of pasting it directly into "style" field of popup dialog box.
Also, if needed, You can hide long excerpts under spoiler, by using of (guess) [spоiler][/spоiler] tags pair.
Good luck>