Undertale script viewer

← back to main script listing

gml_Object_obj_mettattackgen_Step_0

(view raw script w/o annotations or w/e)
1
siner += 1;
2
if (global.turntimer <= 0)
3
{
4
    with (obj_mettb_body)
5
        bodyopen = 0;
6
    if (global.attacktype == 48)
7
    {
8
        with (obj_mettb_body)
9
            event_user(3);
10
    }
11
    global.turntimer = -1;
12
    if (last == 0)
13
        global.mnfight = 3;
14
    instance_destroy();
15
}
16
if (specialtimer == 1)
17
{
18
    if (instance_exists(obj_mettfodder) == 0 && global.turntimer > 9)
19
        global.turntimer = 9;
20
}
21
if (specialtimer == 2)
22
{
23
    if (instance_exists(obj_plusbomb) == 0 && global.turntimer > 9)
24
        global.turntimer = 9;
25
}