Add structures to an array using events? (SOLVED)

I’m trying to create a randomly generated grid of 2D tiles and save it in an array.

My plan is to make an array where each index represents a tile.
Each index should have a struct containing the X location, the Y location and an ID number for the tile.

Since this is happening during runtime, how do I create this structure inside an array via events?


There are at least 2 ways. You can build a structure with a 2nd variable and then add that variable to the array or you can use the same styles as used to read it variableName[#].X


1 Like

Thank you very much, works like a charm!

1 Like