1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
local lights = { POS(-4131,5,-5623), POS(-4127,5,-5623), POS(-4127,5,-5617), POS(-4131,5,-5617) } if event.train then if atc_arrow then schedule_in(";05",true) return end end if event.schedule then if atc_id then schedule_in(";05",true) return else for _,v in pairs(lights) do setstate(v,"off") end end end