The initial ‘ForLoop’ last index is based on a variable called ‘SpawnAmount’ which by default is 10, each loop I spawn a child actor inside the ‘TreeGenerator’ bounds and add the spawned child actor to an array. Once that loop is complete it then run the ‘ForEachLoop’ based on the child actor array which should only fire the same amount of times as the initial ‘ForLoop’.
Hopefully I explained that simply enough.