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(argument0, argument1) //gml_Script_object_set_depth
2
{
3
    var objID = argument0
4
    if object_exists(objID)
5
    {
6
        with (objID)
7
            global.__objectID2Depth[id] = argument1
8
    }
9
}