summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1439,11,-2551).lua
blob: fd682885f664c43093264526c8a4f9e065f8d36e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- 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+")
	local fc = split_at_fc("A0B0",1) 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")
end