Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_snd_pitch_time

(view raw script w/o annotations or w/e)
1
function snd_pitch_time(arg0, arg1, arg2)
2
{
3
    with (obj_lerppitch)
4
    {
5
        if (sndtarget == arg0)
6
            instance_destroy();
7
    }
8
    var pitchthing = instance_create(0, 0, obj_lerppitch);
9
    pitchthing.sndtarget = arg0;
10
    pitchthing.targetpitch = arg1;
11
    pitchthing.maxframes = arg2;
12
    with (pitchthing)
13
        event_user(0);
14
}
15
16
function sound_pitch_time(arg0, arg1, arg2)
17
{
18
    snd_pitch_time(arg0, arg1, arg2);
19
}