diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:54:24 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:54:24 +0200 |
commit | 6f62cd12026f0d43df4df8d2857bfe642fb16d9b (patch) | |
tree | 53f6241f57c8272efaf2fc65b27f8657db14376a /durt/nodes/(1924,7,9147).lua | |
parent | 6581a60a910003eb4df357ff2bf96e745c281500 (diff) | |
download | luaatc_envs-6f62cd12026f0d43df4df8d2857bfe642fb16d9b.tar.gz luaatc_envs-6f62cd12026f0d43df4df8d2857bfe642fb16d9b.tar.bz2 luaatc_envs-6f62cd12026f0d43df4df8d2857bfe642fb16d9b.zip |
State at 2021-09-18
Diffstat (limited to 'durt/nodes/(1924,7,9147).lua')
-rw-r--r-- | durt/nodes/(1924,7,9147).lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/durt/nodes/(1924,7,9147).lua b/durt/nodes/(1924,7,9147).lua new file mode 100644 index 0000000..49a5e6b --- /dev/null +++ b/durt/nodes/(1924,7,9147).lua @@ -0,0 +1,15 @@ +__approach_callback_mode = 1 +if event.approach and not event.has_entered then + atc_set_lzb_tsr(2) +end + +if event.train and atc_arrow then + local rc = get_rc() or "" + if rc:match("M27FUEL") and not rc:match("WOA_EXITLOOP") then + set_rc(rc.." WOA_SHUNT WOA_FUEL") + atc_send("B0WRD2S3") + end + if rc:match("WOA_EXITLOOP") then + atc_Send("SM") + end +end
\ No newline at end of file |