Undertale script viewer

← back to main script listing

gml_Object_obj_4sidegen_Alarm_0

(view raw script w/o annotations or w/e)
1
script_execute(SCR_BORDER_X, floor(random(4)), 0, 0);
2
x = xx;
3
y = yy;
4
if (bullettype == 0)
5
{
6
    script_execute(SCR_BORDER_X, floor(random(4)), 14, 50);
7
    x = xx;
8
    y = yy;
9
    iii = instance_create(x, y, blt_clawbullet_white);
10
    if (instance_exists(iii))
11
    {
12
        iii.dmg = global.monsteratk[myself];
13
        with (iii)
14
            parent = 1;
15
    }
16
}
17
if (bullettype == 1)
18
{
19
    script_execute(SCR_BORDER_X_X, floor(random(4)), 14, 0);
20
    x = xx;
21
    y = yy;
22
    iii = instance_create(x, y, blt_4sidebullet);
23
    if (instance_exists(iii))
24
    {
25
        iii.dmg = global.monsteratk[myself];
26
        with (iii)
27
            parent = 1;
28
    }
29
}
30
alarm[0] = firingspeed;
gml_Object_obj_4sidegen_Alarm_0.gml

script_execute(SCR_BORDER_X, floor(random(4)), 0, 0); x = xx; y = yy; if (bullettype == 0) { script_execute(SCR_BORDER_X, floor(random(4)), 14, 50); x = xx; y = yy; iii = instance_create(x, y, blt_clawbullet_white); if (instance_exists(iii)) { iii.dmg = global.monsteratk[myself]; with (iii) parent = 1; } } if (bullettype == 1) { script_execute(SCR_BORDER_X_X, floor(random(4)), 14, 0); x = xx; y = yy; iii = instance_create(x, y, blt_4sidebullet); if (instance_exists(iii)) { iii.dmg = global.monsteratk[myself]; with (iii) parent = 1; } } alarm[0] = firingspeed;