Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_snd_complex_CleanUp_0

(view raw script w/o annotations or w/e)
1
if (killall)
2
{
3
    for (var i = 0; i < array_length(snd); i++)
4
    {
5
        if (audio_exists(play[i]))
6
            snd_stop(play[i]);
7
    }
8
}
9
if (killind)
10
{
11
    for (var i = 0; i < array_length(snd); i++)
12
    {
13
        if (audio_exists(play[i]))
14
        {
15
            if (killsnd[i])
16
                snd_stop(play[i]);
17
        }
18
    }
19
}