F4llfield Posted March 28, 2023 Share Posted March 28, 2023 (edited) I have a structure like this: Struct myContainer Armor Armor00 Armor Armor01 Armor Armor02 ...EndStruct and I would like to assign values to the Struct myContainer in a loop like this: int index = 0While index < 5 Container.Armor(index) = WornItem(whatever).Item as Armor index += 1EndWhile Is there a way to do that? Edited March 28, 2023 by F4ll0uta Link to comment Share on other sites More sharing options...
F4llfield Posted March 28, 2023 Author Share Posted March 28, 2023 I found a workaround, instead of having the armor items in my structure, I put them in an Armor Array declared as a property and kept the followers and containers tracking info in the struct. It's working now. Link to comment Share on other sites More sharing options...
lee3310 Posted March 29, 2023 Share Posted March 29, 2023 I found a workaround, instead of having the armor items in my structure, I put them in an Armor Array declared as a property and kept the followers and containers tracking info in the struct. It's working now.Yes, if there is only one type in the struct "armor" then there is no need for struct Link to comment Share on other sites More sharing options...
Recommended Posts