Undertale script viewer

← back to main script listing

gml_Object_obj_rotspeargen_gen_Step_0

(view raw script w/o annotations or w/e)
1
if (global.turntimer < 4)
2
{
3
    if (instance_exists(obj_undyne_ex))
4
    {
5
        if (obj_undyne_ex.orderb == 4)
6
        {
7
            global.turntimer = 30;
8
            with (obj_undyne_ex)
9
alarm[11]
10
            if (obj_undyne_ex.order == 11)
11
                obj_undyne_ex.lesson = -11;
12
            with (obj_undyne_ex)
13
                event_user(1);
14
        }
15
    }
16
    with (obj_rotspeargen)
17
        instance_destroy();
18
    with (obj_rotspear)
19
    {
20
        deactivate = 1;
21
        fade = 1;
22
    }
23
    instance_destroy();
24
}