Undertale script viewer

← back to main script listing

gml_Object_obj_chefhat_Step_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_mettaton_actor))
2
{
3
    x = obj_mettaton_actor.x + 7;
4
    y = obj_mettaton_actor.y - 12;
5
    depth = obj_mettaton_actor.depth - 1;
6
}
7
if (instance_exists(obj_mettaton_npc))
8
{
9
    x = obj_mettaton_npc.x + 7;
10
    y = obj_mettaton_npc.y - 12;
11
    depth = obj_mettaton_npc.depth - 1;
12
}