Undertale script viewer

← back to main script listing

gml_Object_obj_target_Alarm_0

(view raw script w/o annotations or w/e)
1
if (global.weapon == 3)
2
    instance_create(x - 16, y, obj_targetchoice);
3
if (global.weapon == 13 || global.weapon == 45 || global.weapon == 51 || global.weapon == 52)
4
{
5
    r = round(random(1));
6
    if (r == 0)
7
        instance_create(x - 16, y, obj_targetchoice);
8
    if (r == 1)
9
        instance_create(x + 570, y, obj_targetchoice);
10
}
11
if (global.weapon == 14 || global.weapon == 47)
12
{
13
    r = round(random(1));
14
    if (r == 0)
15
        instance_create(x - 16, y, obj_targetchoicefist);
16
    if (r == 1)
17
        instance_create(x + 570, y, obj_targetchoicefist);
18
}