Undertale script viewer

← back to main script listing

gml_Object_obj_lock_and_key_Step_1

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
if (con == 2 && instance_exists(OBJ_WRITER) == 0 && global.flag[454 unlocked_latchkey] == 1)
3
{
4
    con = 3;
5
    global.interact = 0;
6
    with (salad)
7
        instance_destroy();
8
    instance_destroy();
9
}