diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:54:14 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:54:14 +0200 |
commit | a027fb0085d83f36bf89d1c27f76965402425da3 (patch) | |
tree | 312240560f2ccdb6f760d29866336b2eb4bf682c /durt/nodes | |
parent | 5ed932ef2693c0e0879027dab8afbe73e98e933c (diff) | |
download | luaatc_envs-a027fb0085d83f36bf89d1c27f76965402425da3.tar.gz luaatc_envs-a027fb0085d83f36bf89d1c27f76965402425da3.tar.bz2 luaatc_envs-a027fb0085d83f36bf89d1c27f76965402425da3.zip |
State at 2021-09-01
Diffstat (limited to 'durt/nodes')
-rw-r--r-- | durt/nodes/(-4129,9,-5588).lua | 9 | ||||
-rw-r--r-- | durt/nodes/(-615,26,2475).lua | 7 |
2 files changed, 14 insertions, 2 deletions
diff --git a/durt/nodes/(-4129,9,-5588).lua b/durt/nodes/(-4129,9,-5588).lua index ff80009..86a9f95 100644 --- a/durt/nodes/(-4129,9,-5588).lua +++ b/durt/nodes/(-4129,9,-5588).lua @@ -16,8 +16,13 @@ if event.train then atc_send("BB") schedule_in(";05",true) else - setstate(pt,"s") - atc_send("S3") + if (get_rc() or ""):match("CAN_corn") then + setstate(pt,"r") + atc_send("B1") + else + setstate(pt,"s") + atc_send("S3") + end end else if tostring(get_rc() or ""):match("DLG_shunt") then diff --git a/durt/nodes/(-615,26,2475).lua b/durt/nodes/(-615,26,2475).lua new file mode 100644 index 0000000..d98ff94 --- /dev/null +++ b/durt/nodes/(-615,26,2475).lua @@ -0,0 +1,7 @@ +__approach_callback_method = 1 +if event.appraoch and not event.has_entered then + atc_set_lzb_trs(1) +end +if event.train and atc_arrow then + atc_send("S1") +end
\ No newline at end of file |