if (instance_exists(obj_cookshowevent)) { if (obj_cookshowevent.con < 4) depth = 1000000; else scr_depth(); } else { scr_depth(); }