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(argument0, argument1) //gml_Script_has_parent
2
{
3
    var _obj = argument0
4
    if (!object_exists(_obj))
5
        _obj = argument0.object_index
6
    if (_obj == argument1 || object_is_ancestor(_obj, argument1))
7
        return true;
8
    return false;
9
}