summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1444,11,-2556).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-1444,11,-2556).lua')
-rw-r--r--durt/nodes/(-1444,11,-2556).lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/durt/nodes/(-1444,11,-2556).lua b/durt/nodes/(-1444,11,-2556).lua
new file mode 100644
index 0000000..fd68288
--- /dev/null
+++ b/durt/nodes/(-1444,11,-2556).lua
@@ -0,0 +1,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 \ No newline at end of file