Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_d3d_model_clear

(view raw script w/o annotations or w/e)
1
function d3d_model_clear(argument0) //gml_Script_d3d_model_clear
2
{
3
    var __m = argument0
4
    if (__m[(0 << 0)] != undefined)
5
    {
6
        buffer_delete(__m[(0 << 0)])
7
        __m[(0 << 0)] = undefined
8
    }
9
    if (__m[(1 << 0)] != undefined)
10
    {
11
        buffer_delete(__m[(1 << 0)])
12
        __m[(1 << 0)] = undefined
13
    }
14
    if (__m[(2 << 0)] != undefined)
15
    {
16
        buffer_delete(__m[(2 << 0)])
17
        __m[(2 << 0)] = undefined
18
    }
19
    if (__m[(3 << 0)] != undefined)
20
    {
21
        buffer_delete(__m[(3 << 0)])
22
        __m[(3 << 0)] = undefined
23
    }
24
    if (__m[(4 << 0)] != undefined)
25
    {
26
        buffer_delete(__m[(4 << 0)])
27
        __m[(4 << 0)] = undefined
28
    }
29
    if (__m[(5 << 0)] != undefined)
30
    {
31
        buffer_delete(__m[(5 << 0)])
32
        __m[(5 << 0)] = undefined
33
    }
34
    if (__m[(6 << 0)] != undefined)
35
    {
36
        vertex_delete_buffer(__m[(6 << 0)])
37
        __m[(6 << 0)] = undefined
38
    }
39
    if (__m[(7 << 0)] != undefined)
40
    {
41
        vertex_delete_buffer(__m[(7 << 0)])
42
        __m[(7 << 0)] = undefined
43
    }
44
    if (__m[(8 << 0)] != undefined)
45
    {
46
        vertex_delete_buffer(__m[(8 << 0)])
47
        __m[(8 << 0)] = undefined
48
    }
49
    __m[(11 << 0)] = 0
50
    __m[(13 << 0)] = 0
51
    __m[(14 << 0)] = 0
52
    __m[(15 << 0)] = 0
53
}