Now I plan for my house builder to also have the ability to make multiple floors, is there a way I can have the data struct for every floor individually?
You could just make a variable into an array with the variable type being the struct. Then for each floor, you’d get struct where index= floor number ( probably +1 unless you want a floor 0 lol).
Basically. Though a for and foreach loop is a bit redundant. On the for loop there, you could get the array length subtract 1 and plug the result into the last index pin. Likewise, in the construction script, you could use use the array length -1 to set number of floors, and when you add a floor in game, you would add an element to the array for the new floor, then use the new length -1 to update the number of floors var.
The for loop I posted just continued to some dummy code to set the relative location of a placeholder static mesh for a door. This loop would be a good place to set locations and/or add mesh components for the floors’ props.
No need to for each inside the loop, since it’s already stepping through the whole array. To set the vars inside each floor’s struct, you’d just use a SetArrayElement node and grab the index off the for loop to use the current floor as the index for the element to set.