Deltarune script viewer

← back to main script listing

gml_Object_obj_controller_mansion_traffic_Create_0

(view raw script w/o annotations or w/e)
1
carGen = 0;
2
depth = 5102;
3
visible = true;
4
victory = false;
5
con = 0;
6
timer = 0;
7
hitcount = 0;
8
layer_set_visible("HIDDEN_PATH", 0);
9
layer_set_visible("TRAFFIC_JAM", 0);
10
if (global.flag[370 solved_mansion_traffic] == 1)
11
{
12
    with (obj_mansion_art_frame)
13
    {
14
        if (image_index == 0)
15
            image_index = 3;
16
    }
17
    if (instance_exists(obj_traffic_road_trigger))
18
    {
19
        with (obj_traffic_road_trigger)
20
        {
21
            x = room_width * 2;
22
            y = room_height * 2;
23
        }
24
    }
25
    with (obj_traffic_car_generator)
26
        instance_destroy();
27
    with (obj_mouseTrigger)
28
        instance_destroy();
29
    with (obj_traffic_switch)
30
        instance_destroy();
31
    with (obj_cybercity_bg_sign)
32
        instance_destroy();
33
    layer_set_visible("HIDDEN_PATH", 1);
34
    layer_set_visible("TRAFFIC_JAM", 1);
35
    layer_set_visible("SPRITES_Alcoves_2", 0);
36
    instance_destroy();
37
}
38
else
39
{
40
    with (obj_mansion_stanchion)
41
        instance_destroy();
42
}