if throttle > 10 and current_dist_to_corner < ideal_brake_dist + 10 then graphics.draw_text("BRAKE LATE!", 100, 200, 0xFF0000FF) audio.beep(800, 200) end
function on_tick() local corner = get_current_corner() local ideal_brake_dist = ref_brake_points[corner] local current_dist_to_corner = get_distance_to_corner(corner) real racing 3 lua script