if (con == 7 || (con == 8 && i_ex(obj_panner))) { var lpsi = last_psi; with (obj_plat_camera) { with (obj_genmarker) { if (extflag == "camera1" && lpsi != 2) other.max_x = x; if (extflag == "camera2") other.min_x = x; if (extflag == "camera3" && lpsi == 2) other.max_x = x; } with (obj_plat_barrier) { if (lpsi == 0) rightlerp = clamp(inverselerp(0, -80, other.x - other.max_x), 0, 1); if (lpsi == 1) leftlerp = clamp(inverselerp(0, 80, other.x - other.min_x), 0, 1); if (lpsi == 2) rightlerp = clamp(inverselerp(0, -80, other.x - other.max_x), 0, 1); } } } else if (con == 8) { var lpsi = last_psi; with (obj_plat_camera) { with (obj_genmarker) { if (extflag == "camera1" && lpsi != 2) other.max_x = x; if (extflag == "camera2") other.min_x = x; if (extflag == "camera3" && lpsi == 2) other.max_x = x; } with (obj_plat_barrier) { leftlerp = inverselerp(0, 80, other.x - other.min_x); rightlerp = inverselerp(0, -80, other.x - other.max_x); } } }