Jump to content

Struct: Assigning Structure values in a loop?


Recommended Posts

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 = 0
While index < 5
Container.Armor(index) = WornItem(whatever).Item as Armor
index += 1
EndWhile
Is there a way to do that?
Edited by F4ll0uta
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...