Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_elevator_test_button_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
if (invincible <= 0)
2
{
3
    invincible = 4;
4
    if (other.big == 1)
5
        invisible = 10;
6
    if (instance_exists(obj_sneo_elevator_test))
7
    {
8
        obj_sneo_elevator_test.my_direction = my_direction;
9
        with (obj_sneo_elevator_test)
10
            event_user(0);
11
    }
12
    else
13
    {
14
        instance_destroy();
15
    }
16
}
17
if (other.big == 0)
18
{
19
    with (other)
20
        event_user(0);
21
}