summaryrefslogtreecommitdiff
path: root/ers_mtn/nodes/(1790,3,1241).lua
blob: 88270da468863d154bd499491cc5ebe751946ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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