Problem upon respawning character, movement locked

Hi,

I’m having a problem with respawning my character. When I respawn the character, it can not move. Is there something wrong with my code setup where I set the movement to deactivate and back to activate? I’ve been breaking my head over this for 3 days now. Any help would be greatly appreciated! I attached screenshots of my code.

Thanks in advance!

Your approach might not be the best.
Instead of killing the character, why not change it’s location to the spawning point, resetting it’s variables?

Also, when you spawn a character you still need to posses it (https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/PossessPawns/Blueprints/)

Anyway if you want to destroy and create a new one, you issue is, if the character BP has been destroyed, then how is it going to spawn the character again, since the BP that is calling spawn doesn’t exist anymore? You need to spawn the new character, then posses the new character, then destroy the old one.

This. Or put your logic in a persistant blueprint

Thanks! I got it working, now I rewrote my blueprints to use destroy actor, then spawn actor of class, then possess it and it works :smiley: