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.
Read train's red/orange signal
Read train's red/orange signal
Last edited by DaveMcW on Wed Jan 02, 2019 2:35 pm, edited 1 time in total.
-
- Fast Inserter
- Posts: 128
- Joined: Thu Feb 08, 2018 8:25 am
- Contact:
Re: Read train's red/orange signal
Added as LuaTrain::signal read for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.