Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_object_set_depth

(view raw script w/o annotations or w/e)
1
function object_set_depth(arg0, arg1)
2
{
3
    var objID = arg0;
4
    if (object_exists(objID))
5
    {
6
        with (objID)
7
            global.__objectID2Depth[id] = arg1;
8
    }
9
}