if event.train then if get_line() == "E1" then if flip then set_rc("E1_Mel_Left") else set_rc("E1_Mel_Right") end flip = not flip end end