Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_chefs_food_Collision_obj_chefs_food

(view raw script w/o annotations or w/e)
1
if (obj_chefs_game.gameover)
2
    exit;
3
if (caught || thrown || on_fire)
4
    exit;
5
var _other = other;
6
var _me = id;
7
if (_other.caught && !_other.on_fire && !_other.thrown)
8
{
9
    with (obj_chefs_kris)
10
    {
11
        if (instance_exists(food[stack_height - 1]))
12
            add_to_stack(_me);
13
    }
14
}