local yard_id = "BY" local subs = { ['S27'] = POS(-1512,8,-2613) } if event.ext_int then print(event) local m = event.message if m.command == "NOTIFY" then -- store the notifications in the yards's S table entry for mass-dispatch if m.msg == "*" then return end -- no need to notify for the LHF train's collect moves S.yards[yard_id].notify[m.msg] = true return end if m.command == "COLLECTED" then S.yards[yard_id].notify[m.msg] = nil return end if m.command == "EXIT" then for k in pairs(S.yards[yard_id].notify) do if subs[k] then interrupt_pos(subs[k],{command="NOTIFY",msg=k}) end end return end end