Undertale script viewer

← back to main script listing

gml_Object_obj_core_laserswitch_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
con = 0;
3
pcon = 0;
4
if (global.plot > 180 || global.flag[7 true_pacifist] == 1)
5
{
6
    meswitch = scr_marker
scr_marker

thismarker = instance_create(argument0, argument1, obj_npc_marker); thismarker.visible = true; thismarker.image_speed = 0; thismarker.sprite_index = argument2; return thismarker;
(x, y, spr_onoffswitch_on);
7
    with (meswitch)
8
        depth = 700000;
9
    with (meswitch)
10
        image_speed = 0.2;
11
    instance_destroy();
12
    exit;
13
}
14
if (global.plot > 180)
15
{
16
    sprite_index = spr_onoffswitch_on;
17
    con = 99;
18
}
19
else
20
{
21
    ff = instance_create(280, 80, obj_kitchenforcefield);
22
    ff.image_yscale = 5;
23
    ff.basic = 0;
24
    pcon = 40;
25
}
26
image_speed = 0.25;
27
fader = 0;
28
remhp = global.hp;
29
if (room == room_fire_core4)
30
    depth = 700000;