[logic]
active = sr_idle@task

[sr_idle@task]
on_info = {!black_screen =actor_on_level(laba_x9)} sr_idle@spawn %+you_must_find_flash_to_escape%

[sr_idle@spawn]
on_info  = {=smart_terrain_empty(labx9_a1)} sr_idle@wait_text %=create_squad(labx9_a1_polter_squad:labx9_a1) =create_squad(labx9_a1_polter_dawn_squad:labx9_a1) =play_sound_actor(horor_3)%
on_info2 = {+lab9_generator_button_pressed} sr_idle@wait_text %=create_squad(labx9_a1_polter_squad:labx9_a1) =create_squad(labx9_a1_polter_dawn_squad:labx9_a1) =play_sound_actor(horor_3)%

[sr_idle@wait_text]
on_game_timer = 10 | sr_idle@wait_actor %=add_and_remove_cs_text( monsters_wake_up )%

[sr_idle@wait_actor]
on_info = {=actor_in_zone(laba_x9_a2_sr_attack) =actor_has_item(labx9_flash_seif_2)} sr_idle@spawn_esc %=create_squad(labx9_a3_polter_squad:labx9_a3) =play_sound_actor(horor_3)%

[sr_idle@spawn_esc]
on_info = {+actor_has_labx9_exit_code_flash} sr_idle@nil %=create_squad(esc_a1_wolf_squad:esc_a1)%

[sr_idle@nil]
