How do I save a double to a specific value in an array using ES3?
Posted: Sun Mar 05, 2023 10:42 am
So, I have this problem where I have a double array saved to ES3. I would like to save a double to a specific place in the array, like so:
and I would like to save levelPbs (position i) to the already saved levelPbs array, at position i
Is this possible, or will I have to just make a lot of doubles?
Code: Select all
for (int i = 0; i < levelPbs.Length; i++)
{
if (levelPbs[i] < ES3.Load<double[]>("levelPbs")[i])
{
ES3.Save<double[]>("levelPbs", levelPbs); //save levelpbs[i] to ES3 levelpbs[i]
}
}
Is this possible, or will I have to just make a lot of doubles?