Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_o_coaster_jama_Collision_o_coaster_hero

(view raw script w/o annotations or w/e)
1
if (active == 1)
2
{
3
    if (type == 0)
4
    {
5
        if (con >= 1)
6
        {
7
            with (other)
8
            {
9
                if (con == 0 && disabled == 0)
10
                {
11
                    disabled = 1;
12
                    disabledtimer = 95;
13
                    xshake = 10;
14
                    disabledtype = 0;
15
                }
16
                if (con != 0 && nitro == 0)
17
                    damaged = 1;
18
            }
19
            event_user(1);
20
        }
21
        else if (bigcar == 0)
22
        {
23
            instance_create(x + 20, y - 40, o_coastersmoke);
24
            instance_destroy();
25
        }
26
    }
27
    if (type == 1)
28
    {
29
        with (other)
30
        {
31
            if (disabled == 0 && con == 1)
32
            {
33
                damaged = 1;
34
                disabled = 1;
35
                disabledtimer = 125;
36
                disabledtype = 1;
37
            }
38
        }
39
    }
40
}