# Repeat a Random Spawn

**URL:** <https://forums.unrealengine.com/t/repeat-a-random-spawn/421060>\
**Category:** XR Development\
**Tags:** destroying-actors, unreal-engine, spawning-actors, question\
**Created:** [March 27, 2018, 9:21pm UTC](https://forums.unrealengine.com/t/repeat-a-random-spawn/421060 "2018-03-27T21:21:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrotherCrayon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrotherCrayon](https://forums.unrealengine.com/u/BrotherCrayon)\
**Post date:** [March 27, 2018, 9:21pm UTC](https://forums.unrealengine.com/t/repeat-a-random-spawn/421060/1 "2018-03-27T21:21:59Z")

</div>

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

 ![235316-spawn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/6/166c3710109004a8478a3d74e4b650162675b124.png)

Interact (on pawn)

 ![235317-interact.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/5/7a5e0efe2efc5e5a699280b2ab82bd3d712854e7.png)

Destroy actor (on actor)

 ![235318-destroy.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/8/2782b8aa3a31401e29db017dba4ab851d9474c9d.png)

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!

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 27, 2018, 9:44pm UTC](https://forums.unrealengine.com/t/repeat-a-random-spawn/421060/2 "2018-03-27T21:44:23Z")

</div>

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.

> **[Spawning an actor after the destruction of the same actor](https://forums.unrealengine.com/questions/766813/spawning-an-actor-after-the-destruction-of-the-sam.html)**
>
> Did you add the interface to the 3rd person character? Do you get that print string? Or does it actually spawn?
