Page 1 of 1

Backwards rail signal direction

Posted: Sun Nov 18, 2018 3:20 am
by DaveMcW

Code: Select all

/c game.player.surface.create_entity{name="rail-signal", position=game.player.position, direction=defines.direction.north}
Now the signal only allows trains to travel SOUTH. :?

Same with all other directions, the rail-signal entity direction is the exact opposite of the direction trains move.

Re: Backwards rail signal direction

Posted: Mon Nov 19, 2018 9:56 am
by bobingabout
Maybe it's defined like wind directions, "North wind" means the wind is travelling from north to south. (Which in my opinion makes absolutely no sense at all.)