Best way to create and store a data type that might differ in number of variables with each entry

I just mean the ‘Construct’ node - if you start typing ‘Construct WeaponBase’ there should be node called that that will just create an instance of WeaponBase, which will live in the current blueprint (or whatever you plug into Target.)

About making a DataTable, couldn’t you give the row struct a WeaponBase, and give each character a WeaponBase variable? Is that the sort of system you’re going for?
Or if the character needs a specific weapon type, you could make character’s variable a specific weapon subclass and when you look up the weapon instance from the DataTable, cast it into the correct weapon type. I guess this would be a bit inelegant though because the WeaponBase entry in the DataTable wouldn’t stop you from putting in the wrong weapon subclass.

1 Like