summaryrefslogtreecommitdiff
path: root/durt/nodes/(1921,7,9096).lua
blob: 32d89d7a3f76f3ebdb44cedf2f052097603bdf4b (plain)
1
if event.digiline then
	if event.channel ~= "track_control" then return end
	
	local err = 0
	if not atc_id then  err = 1 end
	if not atc_arrow then err = 1 end
	if type(event.msg) ~= "table" then err = 1 end
	
	if err == 1 then
		digiline_send("lcd","--Error-- | Check Train")
		return
	end
	
	local i = event.msg
		set_rc(i.ars or "")
		atc_set_text_inside("Destination: "..(i.name or "Unknown").."\nCargo: "..(i.info or "Unknown"))
	
end