Code:
comment ( ===== lighting for last unit in train )
Lights ( 1
Light (
comment( solid Rear red light )
Type ( 0 )
Conditions (
Service ( 2 #in service player or AI )
Unit ( 3 #last unit in train )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( ffff0000 # red colour ff for full bright, 80 for half bright )
Position ( 1.10 2.5 -5.00 # x y z = left-/right+ up+/down- forward+/backward- from model origin )
Azimuth ( -180 -180 -180 # 180 degrees points backwards)
Transition ( 0 )
Radius ( 5.0 # diameter of light in meters)
)
)
)
)
comment ( ====== end lighting ====)
Paste the above into your .wag file (include comment lines to ensure your brackets are correct).
Light diameter is a ridiculous 5.0m to enable you to see it in sim whilst setting it up - change to 1.0 or less once you've settled on position (see below).
z dimension - start with half the third parameter in Size line and make sure it's negative.
# means everything from hash to closing bracket is a comment.
HTH.
tail light.jpg