diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:51:45 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:51:45 +0200 |
commit | 0b14726c5539782a60d2f4beaed2cfca74a50f7a (patch) | |
tree | 1de6e16c565f7bb9806552fc587d7eac870b6b00 /X_Nihilo | |
download | luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.tar.gz luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.tar.bz2 luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.zip |
State at 2019-12-13
Diffstat (limited to 'X_Nihilo')
-rw-r--r-- | X_Nihilo/init_code.lua | 0 | ||||
-rw-r--r-- | X_Nihilo/nodes/(2225,-36,5931).lua | 26 | ||||
-rw-r--r-- | X_Nihilo/nodes/(2225,-36,6144).lua | 26 |
3 files changed, 52 insertions, 0 deletions
diff --git a/X_Nihilo/init_code.lua b/X_Nihilo/init_code.lua new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/X_Nihilo/init_code.lua diff --git a/X_Nihilo/nodes/(2225,-36,5931).lua b/X_Nihilo/nodes/(2225,-36,5931).lua new file mode 100644 index 0000000..e6a12cd --- /dev/null +++ b/X_Nihilo/nodes/(2225,-36,5931).lua @@ -0,0 +1,26 @@ +-- +-- I+B0WROLD15OCD2SM; +-- + +local delta = 45 +local switch = "XN_subway_station2_out" + +if event.type == "train" then + if atc_arrow then + atc_send("B0WROL") + h = os.time() + r = delta - (h % delta) + if r == 0 then r = delta end + setstate(switch,"cr") + interrupt(r,"departure") + return + end +end + +if event.type == "int" then + if event.message == "departure" then + setstate(switch,"st") + atc_send("OCD2SM"); + end + return +end
\ No newline at end of file diff --git a/X_Nihilo/nodes/(2225,-36,6144).lua b/X_Nihilo/nodes/(2225,-36,6144).lua new file mode 100644 index 0000000..4f43320 --- /dev/null +++ b/X_Nihilo/nodes/(2225,-36,6144).lua @@ -0,0 +1,26 @@ +-- +-- I+B0WROLD15OCD2SM; +-- + +local delta = 45 +local switch = "XN_subway_station1_out" + +if event.type == "train" then + if atc_arrow then + atc_send("B0WROL") + h = os.time() + r = delta - (h % delta) + if r == 0 then r = delta end + setstate(switch,"st") + interrupt(r,"departure") + return + end +end + +if event.type == "int" then + if event.message == "departure" then + setstate(switch,"cr") + atc_send("OCD2SM"); + end + return +end
\ No newline at end of file |