Page 1 of 1

Query train block state from rail entity (fetch signals)

Posted: Fri Apr 27, 2018 2:55 pm
by Aidiakapi
If I have a rail entity, I'd like to be able to query the state of the block.

I'm interested in these properties:
  • Amount of trains currently in block (as displayed on the GUI).
  • Amount of trains about to enter a block (the ones that have put signals on orange).
My usage is to be able to spawn a train at a section, without having other trains crash into it.