summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4117,13,-5765).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-4117,13,-5765).lua')
-rw-r--r--durt/nodes/(-4117,13,-5765).lua17
1 files changed, 16 insertions, 1 deletions
diff --git a/durt/nodes/(-4117,13,-5765).lua b/durt/nodes/(-4117,13,-5765).lua
index 599792f..f1087c7 100644
--- a/durt/nodes/(-4117,13,-5765).lua
+++ b/durt/nodes/(-4117,13,-5765).lua
@@ -2,6 +2,17 @@
local arrivals_indicator = POS(-4107, 20, -5793)
local departures_indicator = POS(-4107, 20, -5791)
local road_loco_storage = POS(-4152,13,-5840)
+
+if event.schedule then
+ if event.msg=="send_road_loco" then
+ interrupt_pos(road_loco_storage,"departures")
+ return
+ end
+ return
+end
+if not event.train then return end
+
+
if not atc_arrow then --clean up RC from directing RC's
F.remove_rc_match("DLG_DIR_%S+_N")
return
@@ -16,8 +27,12 @@ end
-- --we'll deal with the yard shunter later
if F.has_rc("DLG_SHUNTER") then
F.indicator(departures_indicator, true)
- interrupt_pos(road_loco_storage,"departures")
split_off_locomotive("B0S0A0",1)
+ schedule_in("0;20","send_road_loco")
+ local cmd = {
+ "DLG_HS_N"
+ }
+ F.add_rc(cmd)
-- if not F.indicator(arrivals_indicator) then --send shunter to its storage siding
-- F.add_rc({
-- "DLG_HS_N",