Undertale script viewer

← back to main script listing

gml_Object_obj_theend_forcefield_Step_0

(view raw script w/o annotations or w/e)
1
if (ended == 0 && global.flag[420 core_laser_timeout] == 0)
2
{
3
    timer += 1;
4
    if (timer > 1800 && global.interact == 0)
5
    {
6
        with (ff)
7
        {
8
            with (solid1)
9
                instance_destroy();
10
        }
11
        ended = 5;
12
        snd_play(snd_impact);
13
        global.flag[420 core_laser_timeout] = 1;
14
    }
15
}
16
if (ended == 5)
17
{
18
    with (ff)
19
        image_alpha -= 0.1;
20
    if (ff.image_alpha < 0.1)
21
    {
22
        with (ff)
23
            instance_destroy();
24
        ended = 6;
25
    }
26
}