summaryrefslogtreecommitdiff
path: root/il_timetable
diff options
context:
space:
mode:
Diffstat (limited to 'il_timetable')
-rw-r--r--il_timetable/init_code.lua2
-rw-r--r--il_timetable/nodes/(943,14,1025).lua1
-rw-r--r--il_timetable/nodes/(957,14,1047).lua5
3 files changed, 7 insertions, 1 deletions
diff --git a/il_timetable/init_code.lua b/il_timetable/init_code.lua
index 919b007..313075b 100644
--- a/il_timetable/init_code.lua
+++ b/il_timetable/init_code.lua
@@ -18,6 +18,7 @@ function F.stop_sd(st_name, doors, departcommand, minstoptime, d_int, d_off)
end
function F.stop_sd_sched(st_name, doors, departcommand, minstoptime, d_int, d_off)
+ depart = false
if event.train then
local time_now = rwt.now()
local next_dep_time = rwt.next_rpt(rwt.add(time_now, minstoptime), d_int, d_off)
@@ -29,6 +30,7 @@ function F.stop_sd_sched(st_name, doors, departcommand, minstoptime, d_int, d_of
atc_send("OCD1"..departcommand)
digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true))
atc_set_text_inside("")
+ depart = true
end
end
diff --git a/il_timetable/nodes/(943,14,1025).lua b/il_timetable/nodes/(943,14,1025).lua
new file mode 100644
index 0000000..b94fa87
--- /dev/null
+++ b/il_timetable/nodes/(943,14,1025).lua
@@ -0,0 +1 @@
+setstate("Ehl6ARSPreventer", "cr") \ No newline at end of file
diff --git a/il_timetable/nodes/(957,14,1047).lua b/il_timetable/nodes/(957,14,1047).lua
index 1db46f4..74760fd 100644
--- a/il_timetable/nodes/(957,14,1047).lua
+++ b/il_timetable/nodes/(957,14,1047).lua
@@ -1,4 +1,7 @@
-- d_int: Departure every n seconds (epoch modulo)
-- d_off: Departure time offset
-- function F.stop_sd(st_name, doors, departcommand, minstoptime, d_int, d_off)
-F.stop_sd_sched("Ehlodex", "R", "SM", 10, 60, 0) \ No newline at end of file
+F.stop_sd_sched("Ehlodex", "R", "SM", 10, 60, 0)
+if depart then
+ setstate("Ehl6ARSPreventer", "st")
+end \ No newline at end of file