Code: Select all
/c game.player.surface.create_entity{name="rail-signal", position=game.player.position, direction=defines.direction.north}
![Confused :?](./images/smilies/icon_e_confused.gif)
Same with all other directions, the rail-signal entity direction is the exact opposite of the direction trains move.