[logic]
active = ph_idle@wait_0

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

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

[ph_idle@wait_2]
nonscript_usable = false
tips = pass_tonnel_key_code
on_game_timer = 60 | ph_idle@wait_3 %=teleport_actor( actor_pass_tonnel_walk:actor_pass_tonnel_look )%

[ph_idle@wait_3]
nonscript_usable = false
tips = pass_tonnel_key_code
on_game_timer = 10 | {=actor_on_level(jupiter_underground) !black_screen} ph_idle@wait_4 %=play_sound_gate_stop =add_and_remove_cs_text( actor_in_pass_tonnel )%

[ph_idle@wait_0]
nonscript_usable = false
tips = pass_tonnel_key_code
on_info = {+jupiter_underground_open} ph_idle@wait_3
