summaryrefslogtreecommitdiff
path: root/ers_mtn/nodes/(1790,3,1241).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
commit5c7f77725394d47ce0b907aabf885ea207a507bd (patch)
treea1ff9c67ef8f225a259e4c6f4c163a45c58bb870 /ers_mtn/nodes/(1790,3,1241).lua
parentb435d1b1b26db6f7c4f3eb589ecf1ed3bb79b57e (diff)
downloadluaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.gz
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.bz2
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.zip
State at 2024-10-15
Diffstat (limited to 'ers_mtn/nodes/(1790,3,1241).lua')
-rw-r--r--ers_mtn/nodes/(1790,3,1241).lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/ers_mtn/nodes/(1790,3,1241).lua b/ers_mtn/nodes/(1790,3,1241).lua
new file mode 100644
index 0000000..88270da
--- /dev/null
+++ b/ers_mtn/nodes/(1790,3,1241).lua
@@ -0,0 +1,36 @@
+--
+--
+-- 1790,3,1241
+
+-- far_luaatctrack_spot_check_01.lua
+
+if event.type == "train" then
+--[[
+ if atc_arrow then
+ F.print("ers_mtn " .. atc_id .. " up")
+ else
+ F.print("ers_mtn " .. atc_id .. " down")
+ end
+]]
+ local posTable = POS( 1790,3,1241 )
+ F.save_train(posTable)
+ digiline_send("display", "update")
+ return
+end
+
+if event.type == "ext_int" then
+ if event.message == "display" then
+ interrupt(3,"update_display")
+ end
+ return
+end
+
+
+if event.type == "int" then
+ if event.msg == "update_display" then
+ if S.stop_display == true then return end
+ digiline_send("display", "update")
+ interrupt(60,"update_display")
+ end
+ return
+end \ No newline at end of file