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(argument0, argument1, argument2) //gml_Script_cutscene_npc_path_start
2
{
3
    with (argument0)
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 != argument1)
14
            path_start(argument1, argument2, path_action_stop, false)
15
    }
16
}