Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_script_delayed_Step_0

(view raw script w/o annotations or w/e)
1
if (constant == 1)
2
{
3
    if (max_time == -1)
4
        totaltimer = -10;
5
    timer++;
6
    if (timer >= rate)
7
    {
8
        if (i_ex(target) && totaltimer < max_time)
9
        {
10
            event_user(0);
11
            timer = 0;
12
        }
13
        else
14
        {
15
            instance_destroy();
16
        }
17
    }
18
    totaltimer++;
19
}