local notification_id = "S27" local ind = POS(-1513,8,-2613) local print_notification = true local function send_train() set_rc("FREIGHT S23 ARC_AUTO ARC_RTS ARC_COLLECT_S27 ARC_AUTO_S23S TanhX_SBS23toE3 MGGRatHYARD S27 S27_UNLOAD S27_Overburden S27_EXIT") atc_send("S0WRD2A1S4") F.indicator(ind,false) end if event.ext_int then if event.message == "notify" then if print_notification then print(rwt.to_string(rwt.now()) .. " "..notification_id.." RX Notification") end if F.indicator(ind) then return end if atc_id then send_train() return else F.indicator(ind,true) return end end end if event.train then if F.indicator(ind) then send_train() return end atc_send("B0") return end