Undertale script viewer

← back to main script listing

gml_Object_blt_4sidebullet_Alarm_3

(view raw script w/o annotations or w/e)
1
if (parent == 1)
2
{
3
    alarm[4] = 26;
gml_Object_blt_4sidebullet_Alarm_4.gml

l += 1; thisbullet = instance_create(xstart, ystart, object_index); if (instance_exists(thisbullet)) { thisbullet.startdir = startdir; thisbullet.startspeed = startspeed; thisbullet.rotdir = rotdir; thisbullet.dmg = dmg; } if (l < limit) alarm[4] = 26;
4
    speed = 2 + random(1.5);
5
    g = floor(random(2));
6
    rotdir = 0;
7
    startdir = scr_perpendicular
scr_perpendicular

sdir = 45; if (x < global.idealborder[0]) sdir = 0; if (x > global.idealborder[1]) sdir = 180; if (y < global.idealborder[2]) sdir = 270; if (y > global.idealborder[3]) sdir = 90; return sdir;
();
8
    startspeed = speed;
9
}
10
visible = true;
11
direction = startdir;
12
speed = startspeed;