okay, so,
This is technically a C2 question, but the response time for C2 is incredibly slow.
And no, I'm not updating to C3 and this question is still valid in C3,
With that out of the way,
I have an array, this array will be used to store positional data ( X, Y, Zindex ) and the instance type as a string.
I haven't gotten to the string part, as it's a last step.
The point of the array is to save this data to a Json file, which I would then use; how is irrelevant.
I'm using this for a ship construction system where parts of a ship can be moved around and built, so obviously it would be nice to have a way to save your ship.
I picked this method as I can expand its functionality to whatever I want, character customization, ship customization, planets, whatever.
My issue:
I'm trying to save multiple object's positions to an array, unfortunately, every time I do, it saves it to only one row on the X axis, each row is supposed to be its own instance, the rest of its information is on the Y axis.
Heres the script:
Heres the result:
Heres how it should look like:
The last image ( how it should look like ), obviously has made up numbers, but it shows how I want it to look, By the way, I only roughly understand how to use arrays, I've been using tutorials, documentation,
and this is as far as I got; which is pretty far because it almost works.
So, how would I add information for each new entry?
I've tried " For each Element " couldn't get it to work as intended but thats likely because I misunderstood how its used.
To make this clear, I just want to know how to fix this issue, so try to stay on subject, I am well aware there are multiple methods to do this, and that there are also multiple ways I can carry this out from here, but to make sure your point is understood some help on this would be appriciated.
If you have to correct my use case, thats fine too; the goal is to learn.