summaryrefslogtreecommitdiff
path: root/X_Nihilo/nodes/(2225,-36,5931).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:51:45 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:51:45 +0200
commit0b14726c5539782a60d2f4beaed2cfca74a50f7a (patch)
tree1de6e16c565f7bb9806552fc587d7eac870b6b00 /X_Nihilo/nodes/(2225,-36,5931).lua
downloadluaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.tar.gz
luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.tar.bz2
luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.zip
State at 2019-12-13
Diffstat (limited to 'X_Nihilo/nodes/(2225,-36,5931).lua')
-rw-r--r--X_Nihilo/nodes/(2225,-36,5931).lua26
1 files changed, 26 insertions, 0 deletions
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