local click = 0;
local second = false;

function ActionsJump ()
    
end;

function gameinput (sender,obj_id,attachedID)
-----------------------------------------------------------------------------------------------------------------------
    if sender==30 then --комикс завершился
      
      StopEmiter("dverka_lab");
      StopAllEffects()
      ShowMenu(true)

      setcurentleaf("electro",19,0);   
      flags.stul_ok = true;
      CreatePlashechka(900000,"3030")    
      --- устновка локов-------

    return;end;
    
    if sender == 15 and not duh then
      if obj_id == 5 then
        speciale_action(2,5,true,3);
      return; end;
    return; end;
    
    if sender == 16 then
      if obj_id == 5 and not duh then
        speciale_action(2,5,true,3);
      return; end;
    return; end;
    
    if sender == 100 then
      
      DeleteResource("comicsj");
      DeleteResource("comicsj_1");
      DeleteResource("comicsj_2");
      DeleteResource("comicsj_9");
      clear_satelite_leaf("electro");
    return; end;
    
    
    if sender == 36 then

      if obj_id == 7650 then
        StopEmiter("to_duh",true)    
        set_visible_object(1100,false)    
        speciale_action(2,9,true,5)
        speciale_action(2,1,true,5)
      return; end;
      if obj_id == 7651 then
        WaitRender();
      return; end;
    return; end;
    
    if sender==6 and not duh then
        if clicking==0 then
            clicking=1
            set_text(1100,984)
        else
            AddParticleToObject(9,"to_duh",320,395);
            MoveEmiter("to_duh",320,395);    
            StartEmiter("to_duh")    
            duh=true
            set_visible_object(5,false)        
            speciale_action(2,6,true,5)
            speciale_action(2,7,true,5)
            StartTimer(7650,7)
            StartTimer(7651,8)
        end;
    return;end;
    
    if sender == 1 then --кликнули левой кнопкой мыши на активный объект
      WaitRender();
    return;end;

end
function SheetSwitched(nCount)
end;