My array isn't working, and I have no idea how to fix it. The array information in the documentation is rather limited. I removed the unnecessary parts of my script to get the meaning across:
var record : Array:
var arrayNumber : int = 0;
//globalScript.globalScript.generation = global variable, integer, increases by 1 every 10 seconds or so
//globalScript.globaltime = global variable, the time in seconds. it resets for every generation
Update()
{
record[globalScript.generation][arrayNumber] = Array()
record[globalScript.generation][arrayNumber][0] = globalScript.globaltime;
record[globalScript.generation][arrayNumber][1] = position; //the position of my object, defined elsewhere
arrayNumber++;
// if (first of the generation) { arrayNumber = 0; }
}
Does anyone know how to properly insert arrays in to arrays?
If you want multidimensional arrays, I think C# is where you need to be working, I can't figure out the syntax in javascript, it may not be possible: ill repost if I figure it out. Here is the C# code to do it: