Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_doorparent_Other_17

(view raw script w/o annotations or w/e)
1
if (is_real(doorEntrance))
2
{
3
    if (doorEntrance != -1)
4
        global.entrance = doorEntrance;
5
}
6
else if (is_string(doorEntrance))
7
{
8
    global.entrance = (ord(string_upper(doorEntrance)) - 65) + 1;
9
}
10
if (doorSound2 != -1)
11
    snd_play(doorSound2);
12
if (doorFacing != -1)
13
    global.facing = doorFacing;
14
if (doorPostDelay > 1)
15
    global.flag[21 door_freeze_timer] = doorPostDelay;
16
else
17
    global.flag[21 door_freeze_timer] = -10;