//==============Check Id================//
procedure IdWaveComplete(float id)
{
    check_dead_id = 999 
  if (id = 3)
  {
    command "call perci_2"
    check_dead_id = 7 
  }

  if (id = 7)
  {
    command "call lestnica_open"
    check_dead_id = 999 
  }

  if (id = 108)
  {
    check_dead_id = 999 
    command "t.unlock r_lift_door_T; call id_108_mozg_on"
  }

}

//==============Check Groupe Id================//

procedure GroupIdWaveComplete(float groupid)
{
  if (groupid = 2)
  {
    command "call top_door2"
   // check_dead_groupid = 1 
  }

}



//==================================================//

procedure GAME
{
  call Game_Check_ID_Dead
  call Game_Check_GroupID_Dead
}
