Page 1 of 1
LuaTrain train_stop_point as coordinates
Posted: Tue Oct 04, 2016 10:43 pm
by ssilk
For my mod it would be super useful to get the train_stop_point (can be seen in debug-mode) as coordinates as part of the LuaTrain.
Something similar would be useful for LuaEntity, if the entity is moving.
Re: LuaTrain train_stop_point as coordinates
Posted: Tue Oct 04, 2016 10:50 pm
by aubergine18
Re: LuaTrain train_stop_point as coordinates
Posted: Wed Oct 05, 2016 8:33 am
by ssilk
No.

But nice to see that.
The train_stop_point is in front of a train and with gaining speed it runs more and more in front of it. This is also the point, that switches a signal to yellow.
With full speed that point is eventually SOME chunks in front of the train. That is the reason, why I find that interesting for the RadarTracking, cause I cannot foresee the way a train runs through a number of rails. Currently I can just estimate it from direction and speed.
This point could be also quite useful for a mod, that warns a player to run onto rails...