[Solved] train window gui

Place to get help with not working mods / modding interface.
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

[Solved] train window gui

Post by mophydeen »

Is there a way to know the player is looking at a train locomotive? And get the entity/name/id?


I want to add a Train button to my gui.

when a train is opened and you click on it.
You get a list of all train stations
you click a train station.
you get a list of station options:
- load ore
- unload ore
- load oil
- unload oil
These are special settings for a train stop:
eg. unload ore:
* 5 seconds passed
* AND Empty cargo inventory
* OR 5 seconds of inactivity

This way I don't have to keep setting all the conditions
Last edited by mophydeen on Tue Jan 17, 2017 8:50 pm, edited 1 time in total.
Post Reply

Return to “Modding help”