LuaSurface.train_station_available(station_name :: string) -> boolean
Returns true if there is at least one enabled train stop on this surface with the given station name.
Search found 2 matches
- Tue Dec 10, 2019 11:07 pm
- Forum: Modding interface requests
- Topic: [Request] Check train station availability by name
- Replies: 1
- Views: 1043
- Sun Nov 17, 2019 3:29 pm
- Forum: Mods
- Topic: [MOD 0.15] ModuleInserter 2.0.0
- Replies: 133
- Views: 107139
Re: [MOD 0.15] ModuleInserter 2.0.0
Assigning keybinding doesn't work.
Solution:
-- data.lua: line 5 - line 12
{
type = 'custom-input',
name = 'get-module-inserter',
key_sequence = "",
action = 'create-blueprint-item', -- add
item_to_create = 'module-inserter', -- add
consuming = 'none'
},
Solution:
-- data.lua: line 5 - line 12
{
type = 'custom-input',
name = 'get-module-inserter',
key_sequence = "",
action = 'create-blueprint-item', -- add
item_to_create = 'module-inserter', -- add
consuming = 'none'
},