summaryrefslogtreecommitdiff
path: root/durt/nodes/(-3553,18,-2261).lua
blob: d0acbc09cd68c44dd8638b66c1614eea33d8f973 (plain)
1
--control interface
loading_road_control_track = POS(-3544,8,-2277)
entry_exit_road_control = nil --still need to add a track for traffic balancing

if event.ext_int then
	digiline_send("train_control_screen",tostring(event.message))
	return
end

if event.digiline then
	if event.channel ~= "train_control" then return end
	if event.msg=="rehead" then
		digiline_send("train_control_screen","Loco Change Ends")
		interrupt_pos(loading_road_control_track,"split_around")
		return
	end
	if event.msg=="depart" then
		digiline_send("train_control_screen","Depart")
		interrupt_pos(loading_road_control_track,"depart")
		return
	end
	if event.msg=="shuffle_loading" then
		digiline_send("train_control_screen","Loading Shuffle")
		interrupt_pos(loading_road_control_track,"shuffle")
		return
	end
	return
end