Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_mus_2_file_loop

(view raw script w/o annotations or w/e)
1
function mus_2_file_loop(arg0, arg1, arg2, arg3)
2
{
3
    global.currentsong[1] = mus_play_ext(arg0, -1, arg2, arg3);
4
    with (instance_create(0, 0, obj_setup_music_loop_track))
5
    {
6
        persistent = true;
7
        volume = arg2;
8
        pitch = arg3;
9
        introtrack = global.currentsong[0];
10
        looptrack = snd_init(arg1);
11
    }
12
}