Page 1 of 1

LuaEntity.set_connected_rail

Posted: Tue Apr 10, 2018 1:50 am
by sparr
I want to be able to override the connections between rails. Either to "disconnect" adjacent rails, or to "connect" nonadjacent rails. I'm hopeful that *some * useful behavior, even if it involves teleporting, would come from this.

Re: LuaEntity.set_connected_rail

Posted: Tue Apr 10, 2018 2:33 am
by Rseding91
Unfortunately the way rails work this isn't possible. The game doesn't save which rails are connected to which so having a rail not connected or connected differently wouldn't be save/load stable.