diff options
Diffstat (limited to 'durt/nodes/(-1973,16,800).lua')
-rw-r--r-- | durt/nodes/(-1973,16,800).lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/durt/nodes/(-1973,16,800).lua b/durt/nodes/(-1973,16,800).lua index e6166e8..ca1446e 100644 --- a/durt/nodes/(-1973,16,800).lua +++ b/durt/nodes/(-1973,16,800).lua @@ -2,6 +2,7 @@ local notification_id = "ARC" local ind = POS(-1954,16,840) local print_notification = true local sections ={ + departures = "262432", -- Destined for Byard store_4 = "032832" -- Destined for Arcadius Basement Loading Dock } local function send_train() @@ -32,6 +33,22 @@ local function send_train() "ARC_AUTO_LOCAL_LOADING", --direct to ARC Basement Loading Dock "ARC_LOAD", --trigger the loading track } + elseif #section_occupancy(sections.departrues) ~= 0 then + if print_notification then print(rwt.to_string(rwt.now()).. " "..notification_id.." send_train() has local job from STORE_4") end + cmd = { -- collect wagons from BYARD, and park loco in loco siding if no departures at ARC + "FREIGHT", + "ARC_LOCOSTORE", + "ARC_AUTO", + "ARC_RTS", + "ARC_COLLECT_ARC_SB", + "ARC_YARD_REENTRY", + "ARC_2ND_EXIT_ARC_AUTO_S23S", + "S23E3N", + "BYARD", + "BY_RTS", + "BY_COLLECT_ARC", + "E3S23N", + } end set_rc(table.concat(cmd," ")) atc_send("S0WRD2A1S4") |