Undertale script viewer

← back to main script listing

gml_Object_obj_hoopgen1_Alarm_0

(view raw script w/o annotations or w/e)
1
r = round(random(1)) + 2;
2
script_execute(SCR_BORDER, r, 2);
3
x = xx;
4
y = yy;
5
if (bullettype == 0)
6
{
7
    iii = instance_create(x, y, blt_hoopbullet1);
8
    if (instance_exists(iii))
9
    {
10
        iii.dmg = global.monsteratk[myself];
11
        iii.bullettype = 0;
12
    }
13
}
14
else
15
{
16
    r = round(random(3));
17
    script_execute(SCR_BORDER, r, 8);
18
    iii = instance_create(x, y, blt_hoopbullet2);
19
    if (instance_exists(iii))
20
        iii.dmg = global.monsteratk[myself];
21
}
22
alarm[0] = firingspeed;
gml_Object_obj_hoopgen1_Alarm_0.gml

r = round(random(1)) + 2; script_execute(SCR_BORDER, r, 2); x = xx; y = yy; if (bullettype == 0) { iii = instance_create(x, y, blt_hoopbullet1); if (instance_exists(iii)) { iii.dmg = global.monsteratk[myself]; iii.bullettype = 0; } } else { r = round(random(3)); script_execute(SCR_BORDER, r, 8); iii = instance_create(x, y, blt_hoopbullet2); if (instance_exists(iii)) iii.dmg = global.monsteratk[myself]; } alarm[0] = firingspeed;