[logic]
active = ph_code@_1

[ph_code@_1]
code = 87523
on_code = %+laba_x_pripyat_und_key_done =remove_item_no_news(labx1_underpass_code_flash)%
tips = laba_x_pripyat_und_key_code
info_code = actor_has_labx1_pass_code_flash
on_info = {+laba_x_pripyat_und_key_done} ph_idle@wait_1 %=disable_ui() =run_postprocess(black:6127:true) -laba_x_pripyat_und_key_done%

[ph_idle@wait_1]
nonscript_usable = false
tips = laba_x_pripyat_und_key_code
on_game_timer = 10 | ph_idle@wait_2 %=play_sound_gate_start%

[ph_idle@wait_2]
nonscript_usable = false
tips = laba_x_pripyat_und_key_code
on_game_timer = 60 | ph_idle@wait_3 %=teleport_actor( actor_laba_x1_pripyat_und_walk:actor_laba_x1_pripyat_und_look )%

[ph_idle@wait_3]
nonscript_usable = false
tips = laba_x_pripyat_und_key_code
on_game_timer = 10 | {=actor_on_level(laba_x) !black_screen} ph_idle@wait_0 %=play_sound_gate_stop =add_and_remove_cs_text( actor_under_south_pripyat )%

[ph_idle@wait_0]
tips = laba_x_pripyat_und_key_code
on_use = ph_idle@wait_1 %=disable_ui() =run_postprocess(black:6127:true)%
