Undertale script viewer

← back to main script listing

gml_Object_obj_innevent1_Step_0

(view raw script w/o annotations or w/e)
1
global.interact = 1;
2
if (fadein == 1 && vol < 0.9)
3
{
4
    vol += 0.01;
5
    caster_set_volume(specialsong, vol);
6
}
7
if (fadein == 2 && vol > 0)
8
{
9
    vol -= 0.02;
10
    caster_set_volume(specialsong, vol);
11
    if (vol < 0.02)
12
    {
13
        alarm[2] = 10;
gml_Object_obj_innevent1_Alarm_2.gml

instance_create(0, 0, obj_unfader); alarm[3] = 15;
14
        vol = 0;
15
    }
16
}
17
if (control_check_pressed(0) && vol > 0.6)
18
    fadein = 2;