Hi all,
In my wave-based gamemode, I’m trying to figure out how to achieve something akin to nested TMaps. The reason I need this is because I have “Squads” which contains a dictionary of units with the number of that unit in the squad, and each squad has a value attached to it for spawning purposes. The layout of what it would look like is this:
Squads = {
SquadSmall = {
Grunt: 4, //UnitClass: How many of this unit is in this squad
GruntMedium: 1,
}: 5 , //SquadID: Value of Squad (for spawning purposes in wave-based gamemode)
SquadGrunts = {
Grunts: 6,
}: 5,
SquadMedium = {
Grunt: 3,
GruntMedium: 2
}: 7,
SquadHeavy = {
GruntMedium: 4,
GruntHeavy: 2,
}: 10,
}
I know nested containers within UE4/5 is not as straightforward, so how could I best achieve this?