Code: Select all
local records = {}
for _, name in pairs ({"#SOUTH", "#EAST", "#NORTH", "#WEST"}) do
records[#records + 1] = {station = name, wait_conditions = {{type = "time", ticks = 0, compare_type = "and"}}}
end
records[1].wait_conditions = {{type = "full", compare_type = "and"}}
train.schedule = {current = 0, records = records} --<<<<< Don't set it to 0