you can make an array of actor classes,like this:
For each of the array indexes, you can enter whatever class that you want.
To spawn them along with scene componenets and attach them, like this:
If the number of scene components and number of entries in the Soldiers array is not the same, you’ll need some additional code to handle that, otherwise you’ll get some errors about indexes not found. That’s another problem, but if you search for something like “loop through array” I think you’ll find answers. A simple solution is just to add more entrees to the array so that they both have the same number.