diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:25 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:25 +0200 |
commit | e34f1bd16618a448527ee1c9178c8cee04f8e3df (patch) | |
tree | dc9f2c9489d01ee93122dae33041a2d0930f72b0 /durt/nodes/(-4599,7,-6502).lua | |
parent | 29dbe3d4d02010ae3d6c289a4fee01709008c7c0 (diff) | |
download | luaatc_envs-e34f1bd16618a448527ee1c9178c8cee04f8e3df.tar.gz luaatc_envs-e34f1bd16618a448527ee1c9178c8cee04f8e3df.tar.bz2 luaatc_envs-e34f1bd16618a448527ee1c9178c8cee04f8e3df.zip |
State at 2022-03-06
Diffstat (limited to 'durt/nodes/(-4599,7,-6502).lua')
-rw-r--r-- | durt/nodes/(-4599,7,-6502).lua | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/durt/nodes/(-4599,7,-6502).lua b/durt/nodes/(-4599,7,-6502).lua index 0fa580c..6040727 100644 --- a/durt/nodes/(-4599,7,-6502).lua +++ b/durt/nodes/(-4599,7,-6502).lua @@ -1,13 +1,20 @@ -if event.train and atc_arrow then - local rc = get_rc() or "" - if rc:match("BFT_Mainline_Headshunt") then - schedule_in(";01",atc_id) +if event.train then + if atc_arrow then + if F.has_rc("BFT_Mainline_Headshunt") then + schedule_in(";01",atc_id) + print("Train's id: " ..atc_id) + return + end + else + if not F.has_rc("BFT_rejoin_from_north") then return end + atc_send("CplD1S1") return end end if event.schedule then - if event.msg == atc_id then + print("Msg id: "..event.msg) + if atc_id and event.msg == atc_id then schedule_in(";01",event.msg) return else |