diff options
Diffstat (limited to 'Tyard/nodes/(-4011,12,-2642).lua')
-rw-r--r-- | Tyard/nodes/(-4011,12,-2642).lua | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/Tyard/nodes/(-4011,12,-2642).lua b/Tyard/nodes/(-4011,12,-2642).lua index 81a963d..d263812 100644 --- a/Tyard/nodes/(-4011,12,-2642).lua +++ b/Tyard/nodes/(-4011,12,-2642).lua @@ -1 +1,33 @@ -if S.yard_active and atc_arrow then set_autocouple() end
\ No newline at end of file +-- Yard arrival checker +local function enter_yard() + F.dir(false) + F.yard_active(true) + atc_set_ars_disable(false) + atc_send("S6") + return +end + +__approach_callback_mode = 1 +if event.approach and not event.has_entered then + atc_set_ars_disable(true) + atc_set_lzb_trs(1) + return +end + +if event.train then + if F.yard_active() then + schedule_in(";10","recheck") + return + else + enter_yard() + end +end + +if event.schedule then + if F.yard_active() then + schedule_in(";10","recheck") + return + else + enter_yard() + end +end
\ No newline at end of file |