Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_cutscene_npc_path_start

(view raw script w/o annotations or w/e)
1
function cutscene_npc_path_start(arg0, arg1, arg2)
2
{
3
    with (arg0)
4
    {
5
        if (path_position >= 1)
6
        {
7
            path_position = 0;
8
            path_end();
9
            with (other)
10
                cutscene_advance();
11
            return true;
12
        }
13
        if (path_index != arg1)
14
            path_start(arg1, arg2, path_action_stop, false);
15
    }
16
}