Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_has_parent

(view raw script w/o annotations or w/e)
1
function has_parent(arg0, arg1)
2
{
3
    var _obj = arg0;
4
    if (!object_exists(_obj))
5
        _obj = arg0.object_index;
6
    if (_obj == arg1 || object_is_ancestor(_obj, arg1))
7
        return true;
8
    return false;
9
}