Accessing the right values for the proper indexes.

Hello!! I am currently working on a house builder and I’ve got a data structure like this:


Now I’m trying to do this thing where I can add a roof offset to the XY values so the user has a bit of customization as to where the roof corners go… now since I plan to make multiple floors I was hoping that I’d be able to make it so that Index[0] of array would only affect the first floor, Index[1] only affects the second floor and so on.
The issue I’m facing right now is that if I plug in the roof offset, it creates multiple instances of the corner since it stores multiple values because of the Data struct.

You need to use the floor number to access the structure array. I don’t see that here… :slight_smile:

So I’ve got something like this going, one sec


But again the issue is that it creates multiple instances instead of only making one and offsetting it by the value in the index

This seems to have done the trick.


1 Like