How do I spawn an actor after I destroy and actor

Im trying to set up a targeting system where it will spawn an object after and actor is destroyed.

I would suggest having a global interface that will be triggered by an actor being destroyed. So when the actor itself is destroyed it fires off a signal to the global interface, then that interface can inform the targeting system to spawn an actor.

It depends what you are using to spawn them.

If, for example, it is the GameInstance…

Add an event telling it to replace an actor as it is removed.

.

And in the actor itself - instead of just using “DestroyActor” - have it first call that event in the game instance.