summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1515,7,-2625).lua
blob: 9ae53c0cc3b75b3e28b7a74bed8c63b571bb3e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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