Problem upon respawning character, movement locked
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!
asked Sep 23 '16 at 01:48 PM in Blueprint Scripting
Rebel Camp Games
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.
Follow this question
Once you sign in you will be able to subscribe for any updates here