[logic]
active = ph_button@no_card

[ph_button@no_card]
anim = idle
tooltip = tip_no_access_card
on_info = {=actor_has_item(prip_seif_labx8_flash)} ph_code@_1 %=turn_off(lx8_light_switch_1_green_id)%

[ph_code@_1]
code = 190678
on_code = %+laba_x8_key_code%
tips = tunnel_lab_1_physic_door_1_code
info_code = actor_has_labx8_flash
on_info = {+laba_x8_key_code} ph_button@unlocked %=remove_item_no_news(prip_seif_labx8_flash)%

[ph_button@unlocked]
anim = idle
tooltip = st_lx8_button_press_true
on_game_timer = 20 | {-lx8_door_open} %+lx8_door_open =anim_obj_forward(lx8_physic_door) =remove_item_no_news(prip_all_seifs_flash)%  
on_game_timer2 = 10 | {-lx8_green_on} %+lx8_green_on =turn_off(lx8_light_switch_1_red_id) =turn_on(lx8_light_switch_1_green_id)%
on_info = {-lx8_actor_in_lab =actor_in_zone(lx8_sr_actor_in_lab)} %+lx8_actor_in_lab =create_squad(lx8_polter_squad:lx8_smart_terrain)%
