summaryrefslogtreecommitdiff
path: root/far/nodes/(30848,15,1852).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 15:00:36 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 15:00:36 +0200
commitef6736062f784c36b85f20f8678d274070a6d44f (patch)
tree4248de95e185b5aecfe80a0a1b3b2d3b8c3d7594 /far/nodes/(30848,15,1852).lua
parent9738bbd6287518633463173a2d936ca22d5591ea (diff)
downloadluaatc_envs-ef6736062f784c36b85f20f8678d274070a6d44f.tar.gz
luaatc_envs-ef6736062f784c36b85f20f8678d274070a6d44f.tar.bz2
luaatc_envs-ef6736062f784c36b85f20f8678d274070a6d44f.zip
State at 2023-07-23
Diffstat (limited to 'far/nodes/(30848,15,1852).lua')
-rw-r--r--far/nodes/(30848,15,1852).lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/far/nodes/(30848,15,1852).lua b/far/nodes/(30848,15,1852).lua
new file mode 100644
index 0000000..e55e17b
--- /dev/null
+++ b/far/nodes/(30848,15,1852).lua
@@ -0,0 +1,25 @@
+-- far_luaatctrack_spot_check_01.lua
+
+if event.type == "train" then
+ local posTable = POS(30848,15,1852)
+ F.save_train(posTable)
+ digiline_send("display", "update")
+ return
+end
+
+if event.type == "ext_int" then
+ if event.message == "display" then
+ interrupt(30,"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