Respawn a player with AI, Destroy,repeat

I am initially starting with a character called “BasicAI” in the scene who has AI instruction to follow the player. I am able to shoot him destroy him and even respawn him. However I am only able to kill him the first time only. He gets destroyed just fine the first time but For some reason the destruction in not repeatable. Please help!!

I wanted to add what I use to destroy the BasicAi guy with, perhaps the issue lies within that?

Which engine version are you using? Take a look at this question: Spawn AI controller bug

version 4.2.1 tried the run behavior tree but can not get the BTAsset to link to anything … still not destroying twice…(scratching head!!)

I had a similar problem as well.

Bind the spawned AI’s destroy event to the player blueprint and use that to trigger the same chain of events.

same result, the spawned guy is still indestructible…I am not sure if I am doing something wrong or it just does not work

your destroy call needs to destroy the object being created from the spawn function. it looks like right now you’re only destroying the persistent object which can only be destroyed once anyhow.

what would that look like?

In your projectile class do this:

and in your pawn class do this:

however, be sure to call custom ‘SpawnAI’ event when your pawn spawns into the game if the pawn is going to control the AI spawn.

Howdy getantonio,

Have you checked out Silent X’s Tutorials on YouTube. You can find them here: Blueprints - How to Setup Respawns & Checkpoints 1/2 - Unreal Engine 4.6 (OLD) - YouTube. Let me know if that helps you with what you are attempting to do.

Thanks and have a great day!

I have but he respawns the main player and so does Hourences.com – The Solus Project. he approaches it even a little more different with just toggling the visibility on and off and relocating the character to a new location. Either way I am unclear on how to apply either method to my situation of an ai controlled 3rd character.