diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:14 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:14 +0200 |
commit | 5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971 (patch) | |
tree | 85f5c29c1dde0bedb823aa60a48015312670396a /il_timetable | |
parent | c21692e0a830e434675014dd7b54736d180ce71d (diff) | |
download | luaatc_envs-5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971.tar.gz luaatc_envs-5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971.tar.bz2 luaatc_envs-5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971.zip |
State at 2020-08-29
Diffstat (limited to 'il_timetable')
-rw-r--r-- | il_timetable/init_code.lua | 2 | ||||
-rw-r--r-- | il_timetable/nodes/(943,14,1025).lua | 1 | ||||
-rw-r--r-- | il_timetable/nodes/(957,14,1047).lua | 5 |
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 |