Repeat a Random Spawn

Hello, new to all of this.

I found a script to spawn an actor in a random place and then use an interact function to destroy the actor.

Spawn

Interact (on pawn)

Destroy actor (on actor)

Is there a way I can get this code to repeat the spawn actor to reappear (preferably with a delay but not essential) once it has been destoyed?

Thanks!

you would need to have the actor that is being destroyed to call the spawn event before its destroyed. Or you could use a timer to see if the spawned object exists and if not then respawn.

below ill link a similar question that was about spawning medkits then respawning them.