defines.train_state.leave_station

Things that already exist in the current mod API
Post Reply
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 333
Joined: Tue Jul 08, 2014 10:06 am
Contact:

defines.train_state.leave_station

Post by LuziferSenpai »

Hey,

like the Topic says I want to request a new defines so we can detect if a Train leaves a Station, so we can do stuff than.

If you want more Details I will provide that.

Greetz,

Senpai
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: defines.train_state.leave_station

Post by Optera »

You can do this already with on_train_changed_state
Check for old_state == defines.train_state.wait_station

User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 333
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: defines.train_state.leave_station

Post by LuziferSenpai »

Optera wrote:You can do this already with on_train_changed_state
Check for old_state == defines.train_state.wait_station
Thanks
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Post Reply

Return to “Already exists”