summaryrefslogtreecommitdiff
path: root/Crossroads/nodes/(1601,5,1992).lua
blob: 4cb1cb829f42b36a4f7df4fbe0e74456a9a68fae (plain)
1
2
3
4
5
6
7
8
9
--
local interval = 900 -- Interval in seconds
local offset = interval/2 -- Offset for the timing system
if event.type == "train" then
  if atc_arrow then
    interrupt_time = (offset-os.time())%interval
    atc_send(string.format("BBWD%dRSM",interrupt_time))
  end
end