I have created a blueprint called “EnemyCharacter” using the third person template. It follows the player and attacks them. However, I now want to make the enemy respawn after being killed. My logic for this is shown in the following screenshot.
After an enemy dies, it is destroyed using “DestroyActor”. After a 1 second delay, “SpawnActor” is called to create a new enemy in the same position where the previous one died. However, the “SpawnActor” function fails to spawn a new enemy when the delay is used. If I remove the delay and go straight from “DestroyActor” to “SpawnActor”, the enemy appears properly. Why does this happen and how can I allow the blueprint to use a delay properly?