signals deactivation

sister

Co-founder TFF Italy
I've a question for you:
I have to create a signal which has to work only when a loco is at the place. all the other time it has to be with no lights.
Does anyone know if and how to to it?
Does it need scripts or it is possible to arrange it via config only?
thanks in advance for your kind help.

Roberto (sister) - Italy
 
I've a question for you:
I have to create a signal which has to work only when a loco is at the place. all the other time it has to be with no lights.
Does anyone know if and how to to it?
Does it need scripts or it is possible to arrange it via config only?
thanks in advance for your kind help.

Roberto (sister) - Italy

I don't think you can do this, Roberto. It's a nice idea though because that's how our signals work over here in the US.

John
 
I suspected it was in this way. :( Hope Auran will be able to solve it in future releases of Trainz.
Thanks anyway.
 
FWIW there's this function:
public native void Signal.LightSignal ( bool show )
Set the emissive state of the signal bulbs.

Note: AI trains will still read the signal state, even if it is switched off. Parameters: show If true, the signal flare is switched on, otherwise false to turn it off.
However, there's no signal state in TRS2004 for "not set". I guess you'd want to set it to RED, assuming that a driver encountering a signal with no lights operative should not pass it.

HTH, John
 
FWIW there's this function:
However, there's no signal state in TRS2004 for "not set". I guess you'd want to set it to RED, assuming that a driver encountering a signal with no lights operative should not pass it.

HTH, John

Interesting John,
while I'm quite not a script eater did you mind to explain me better how to use exactly this tag you suggested? I mean, is it possible to tied that tag with a trigger which says "train is here/train is not here"?
Thanks in advance.
Roberto (Sister)
 
Last edited:
I'm sorry, I only know about how to use functions such as that in a TRS2004 scenario written in GameScript. I believe they can also be used in Rules but I don't know how to create a Rule. I hope someone else can point you to information on that subject.

John
 
Back
Top