Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_destroy_writers

(view raw script w/o annotations or w/e)
1
function 
scr_destroy_writers
scr_destroy_writers

function
scr_destroy_writers(arg0 = -4)
{ if (arg0 == -4) { with (obj_writer) instance_destroy(); exit; } with (obj_writer) { if (!variable_instance_exists(id, arg0)) instance_destroy(); } }
(arg0 = -4)
2
{
3
    if (arg0 == -4)
4
    {
5
        with (obj_writer)
6
            instance_destroy();
7
        exit;
8
    }
9
    with (obj_writer)
10
    {
11
        if (!variable_instance_exists(id, arg0))
12
            instance_destroy();
13
    }
14
}