Undertale script viewer

← back to main script listing

gml_Object_obj_risespearbulletgen_Alarm_0

(view raw script w/o annotations or w/e)
1
if (global.turntimer > 8)
2
{
3
    xset = floor(random(3));
4
    if (xset == xsetmem)
5
        xset += 1;
6
    if (xset == 3)
7
        xset = 0;
8
    xsetmem = xset;
9
    g = instance_create(obj_lborder.x + (xset * 23), obj_dborder.y, obj_risespearbullet);
10
    g.type = offchoice;
11
    alarm[0] = global.firingrate;
gml_Object_obj_risespearbulletgen_Alarm_0.gml

if (global.turntimer > 8) { xset = floor(random(3)); if (xset == xsetmem) xset += 1; if (xset == 3) xset = 0; xsetmem = xset; g = instance_create(obj_lborder.x + (xset * 23), obj_dborder.y, obj_risespearbullet); g.type = offchoice; alarm[0] = global.firingrate; }
12
}