Destroy an actor and then spawn it again with the same variables.

Hey there, I have a randomization system that spawns actors with a score variable (price), rarity, and weight.

I would like to destroy that actor (store it as a unique), then spawn it again with the same values.

All I know is that I have to add it to an array as a unique, but I have no clue on how to do that. If someone can explain it to me, I would appreciate it.

I just want to make a device like the Vacpack from Slime Rancher.

The actor image

And here’s an image from the spawner blueprints.

from what you’ve shown it looks like you just need to save the Item_Struct?

you have it inside the Actor as ItemDetails so

  1. create an Array of ItemStruct (store it somewhere common like the GameInstance)
  2. OnDestroy Get ItemDetails from the Actor and Add → ItemStruct Array