Laurinlaki
Script Developer
Before people start changing scripts, please think
-The script itself is just fine, SetHeadlightState(true/false) is a valid way to turn headlight off/on
the script writer wanted to turn ALL lights off in "case S_NONE" there is nothing wrong with that.
[...]
please dont correct/error stuff that is basicly ok
The problem is that the way it was set up is wrong. This only turns off the default headlights, which have little use on this locomotive, since custom coronas are in use, which are not turned off. Removing this line changes nothing about how the custom coronas work. The actual light "shine" effect would also be controlled by this, but since the custom coronas are still on, and alas, the actual headlights are still on it wouldn't make sense for the light shine to disappear either.
Furthermore the problem is that whenever the script changes something on the lights itself, it treats this exactly as if the user would change something as I've already explained two pages back, causing the game to freeze because the script enters an infinite loop of spawning more processes. So no, this is not okay.
Since I know that polish locomotives traditionally have rather weak headlights and the default light "shine" from the game is probably too powerful in comparison to this, I'll see if I can write a short script addition that authors of polish/eastern european locomotives can implement to improve the realism if they choose so by making the light effect at night weaker and closer to reality.. This is obviously up to the original authors and not CRG to add new features.
Greets, Mika