Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_maus_basket_Collision_obj_act_hitbox

(view raw script w/o annotations or w/e)
1
if (caught[other.which] == 0)
2
{
3
    caught[other.which] = 1;
4
    if (other.parentid.object_index == obj_maus_enemy)
5
    {
6
        snd_stop(snd_squeaky);
7
        snd_play(snd_squeaky);
8
        snd_volume(snd_squeaky, 1, 0);
9
    }
10
    else
11
    {
12
        snd_stop(snd_noise);
13
        snd_play(snd_noise);
14
        snd_volume(snd_noise, 0.8, 0);
15
    }
16
}
17
monsterhit[other.which] = 1;
18
maker.caught[other.which] = 1;
19
with (obj_mauswheel_enemy)
20
    actfailure = 0;