Undertale script viewer

← back to main script listing

gml_Object_obj_mettheart_4_Collision_740

related scripts: Alarm_3Alarm_4Collision_740 Create_0Draw_0Other_10Other_11Step_0

(view raw script w/o annotations or w/e)
1
snd_play(snd_mtt_hit);
2
event_user(0);
3
with (other.id)
4
    instance_destroy();
5
life -= 40;
6
if (life < 1 && movetype != 1)
7
{
8
    if (global.turntimer > 0)
9
        global.turntimer = 0;
10
}
11
global.ratings += 20;