local yard_id = "CAN" if not S.yards[yard_id].notify then return end local subs = { --[[ A list of FC subscribers to send out notifications for. Each entry must have a coresponding Lua Track / Operators Panel to trigger (using event.ext_int) Used to alert a shunter locomotive or other yard that there's wagons available to collect from this yard. ]]-- ['ARC'] = {['pos'] = POS(-630,26,2454), ['msg'] = "notify"}, --send the CAN loco to collect from ARC, then return and deliver here for ARC ['CORN'] = {['pos'] = POS(-630,26,2454), ['msg'] = "shuffle"} -- consolidate wagons to the departure track ['BOTTLES'] = {['pos'] = POS(-630,26,2454), ['msg'] = "shuffle"} -- consolidate wagons to the departure track ['ETHANOL'] = {['pos'] = POS(-630,26,2454), ['msg'] = "shuffle"} -- consolidate wagons to the departure track } if event.ext_int or event.punch then local list = "Notify: " for fc, sub in pairs(subs) do if S.yards[yard_id].notify[fc] then interrupt_pos(sub.pos,sub.msg or "notify") list = list .. fc .. ", " end end digiline_send("lcd",list) S.yards[yard_id].notify = {} end