Deltarune script viewer

← back to main script listing

gml_Object_obj_ch2_room_mansion_east_2f_c_a_Create_0

(view raw script w/o annotations or w/e)
1
visible = true;
2
saucerCount = 0;
3
complete = 0;
4
if (global.flag[139 got_mansion_glowshard] == 0)
5
{
6
    dothis = true;
7
}
8
else
9
{
10
    dothis = false;
11
    with (obj_saucer)
12
    {
13
        my_new = instance_create(x, y, obj_saucer);
14
        my_new.mode = 6;
15
        instance_destroy();
16
    }
17
    if (instance_exists(obj_saucer_ufo))
18
    {
19
        with (obj_saucer_ufo)
20
            instance_destroy();
21
    }
22
}