summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1439,11,-2551).lua
blob: 14b91b43ed341f31ece336778142f8774f333a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- S27 Load/Unload Ramp
if not F.has_rc("S27_SHUNTER") or not F.has_rc("S27_EXPORT_ACTIVE") then return end
if atc_arrow then
	F.remove_rc_match("S27_EXP_DIR_%S+")
	step_fc()
	local fc = split_at_fc("A0B0",2) or "DEPART" --should be either DIRT_LOAD or DEPART. anything else goes to departures by default
	F.add_rc({
		"S27_EXP_HS_N",
		"S27_EXP_DIR_"..fc
	})
	if fc == "DEPART" then
		F.add_rc("S27_EXP_HS_N_AC")
	end
	atc_send("A1S3")
	return
end
atc_send("S1")