Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_tile_get_width

(view raw script w/o annotations or w/e)
1
function tile_get_width(argument0) //gml_Script_tile_get_width
2
{
3
    var __index = argument0
4
    var __reg = layer_tile_get_region(__index)
5
    if (array_length_1d(__reg) == 0)
6
        return 0;
7
    return __reg[2];
8
}