Can’t figure out how to save destroyed actors so that I can respawn them later

I’m using pcg to spawn my items onto my landscape and am able to pick them up into my inventory and destroys the actor but I can’t figure out how to respawn the items

Instead of destroying it, can you set it invisible and start a timer which sets it visible after some respawn duration?

I can’t do that because the inventory system is what destroys the item on pickup, and I don’t want every item to respawn, only certain ones.

Instead of the inventory system destroying items it could call Item->RemoveFromWorld() and depending on the item that function either destroys the actor or hides it for respawn later.

How would I go about doing that? Sorry it’s literally my first time making a game and I kinda have no idea what I’m doing. probably should mention I used a tutorial by unreal university to make the inventory.

You’d want to set a save game variable, probably map of class type references to location vectors. This could be used 2 ways, 1 to respawn later at runtime. Or 2, note that when you reload the game or a level these objects will by default, respawn, you could use this map to destroy these actors on load if they’re time to respawn has not yet come

We would have to see the code to be able to say what to add/change where