REVISED sneak-peek, so you can see more of this 3rd rail gap feature on the train:
The R16 for OpenBVE (Trailer 7 REVISED) - 3rd Rail GapThats awesome though but why are you testing in the LUL.I remember running a NYCT train on their and its the route itself that has the coding for arching in places(not saying the train couldn't had possibly had coding) features.As far as the interior lighting the 1995 LU Stock once it loses power (arching) the train goes dark briefly(1 sec or less).
For the train itself to take advantage of this, the code basically swaps the emissive train objects for non-emissive train objects once it crosses a 3rd rail gap, hence, the code must be placed in the .animated files, specifying first a non-emissive object, and the second, an emissive object (for the interior lighting effect). This is what the R16 has implemented, followed by Mr Railfan's R30.
For this to work, it depends on the route having the coding for the 3rd rail gap, since it triggers that ATS state (which is 53). Otherwise, the train will always appear lit.
You can see how it's coded from the train end on this thread:
http://forums.bvestation.com/index.php?topic=1329.0