I have a function that gets all actors from map then resizes an arrayand then fills the array with the actors, and its working ok i guess, the problem is that some actors have chilld actors inside of them, and every time i load the game thos child actors that are inside an actor get incremented, resulting in each load to had one of those childs on top of the previous, how can i stop this?
When you get an array of actors with the function GetAllActorsWithInterface, that array includes child actors, too, if they contain the same interface. Then when you respawn the stored actors, the child actors are spawned twice. Once automatically and a second time from your saved array. That’s why I suggested filtering out child actors on save.