Page 1 of 1

Read train's red/orange signal

Posted: Fri Dec 28, 2018 1:50 pm
by DaveMcW
I would like to read the target signal entity from the on_train_changed_state event, if LuaTrain.state is one of:
arrive_signal
wait_signal

Alternatively, you could add the signal entity to the LuaTrain object if that is easier.

Re: Read train's red/orange signal

Posted: Fri Dec 28, 2018 3:00 pm
by shanemadden

Re: Read train's red/orange signal

Posted: Wed Apr 24, 2019 2:11 pm
by Bilka
Added as LuaTrain::signal read for the next version.