Undertale script viewer

← back to main script listing

gml_Object_obj_exhaustbullet_Alarm_0

(view raw script w/o annotations or w/e)
1
if (off == 0)
2
{
3
    gravity = 0.1;
4
    gravity_direction = 0;
5
}
6
if (off == 1)
7
{
8
    gravity = 0.1;
9
    gravity_direction = 180;
10
}
11
if (off == 2)
12
{
13
    gravity = 0.1;
14
    gravity_direction = 60 + random(60);
15
    pop = scr_monstersum
scr_monstersum

return global.monster[0] + global.monster[1] + global.monster[2];
();
16
    if (pop > 1)
17
        instance_destroy();
18
}