Backwards rail signal direction

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Backwards rail signal direction

Post 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.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Backwards rail signal direction

Post 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.)
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Post Reply

Return to “Modding discussion”