__approach_callback_mode = 2

if event.approach and not event.has_entered then
    atc_set_ars_disable(true)
    atc_set_lzb_tsr(1)
end

if event.train then
    if atc_arrow then
        atc_set_ars_disable(false)
        atc_send("SM")
    else
        atc_send("S1B1")
    end
end