Download

LogSpawn:Warning: SpawnActor failed because the spawned actor IsPendin

Hello

I have a problem, ActorA spawn a actorB like this:

ADCa* tempObject = (ADCa*)GetWorld()->SpawnActor(ADCa::StaticClass(), &Location);

when the actorB Destroy() himself actorA detect it for spawn again.

That all work fine, actorA try spawn again ActorB using the same spawn function and i got that message

LoggSpawn:Warning: SpawnActor failed because the spawned actor IsPendingKill

Since i c++ noob can be something basic but i not get it. what the problem?

if i not destroy the “old” actor works fine.

thanks

I found the problem, seems the spawn its ok but got destroyed after spawn, not understand why give me that error. Its confused.