Saving and Loading Arrays of Actors?

Hi, hope everyone’s having a good day

I’ve been wondering how do you save multiple actors and load them again after re-opening a map? I tried saving their properties into STRUCT arrays using GetAllActorsFromClass then applying them again to each one of them using the same method after retrieving those saved properties from the SaveGame but this doesn’t seem consistent, like some actors get skipped or some stuff change after I re-open the map:

Saving #1

Saving #2

Loading

(Ignore the blue NOTE, it’s just so I can easily re-use the code again somewhere else)

I’m not even sure if this is the right way to save and load arrays of actors, what is the proper way to save and load multiple actors without having to worry about them changing the next time I reload a map? any help would super appreciated!

Are you, per chance, using the async version of the write save game node?

Also how do you know its saving/loading/applying in the same order?

Async? I’m new to this, I’m using the regular “Save Game To Slot”, what does the async version do?

I thought the order would be the same every time but now that you mention it I can see that’s probably why it’s not working as I thought it would, Thanks for the help :slight_smile:

1 Like

Well, don’t use it, is the simple answer :slight_smile:

I think @pezzott1 is hot on the trail…

2 Likes