Main Character Dying + Respawning Problems

Hey Guys,
so this problem is a bit more complex (for me) I’m very new to Unreal.

So in my game I want my character to be able to die by:

  • -several enemys
  • -objects like spikes etc.
  • -falldamage
  • -and maybe some more
  • I also want my character to respawn
    at checkpoints.

(Typical action adventure)

regarding this I thought that it would make sense to build the death function inside of my character + the request if there is already a checkpoint and so on.
I am combining a lot from tutorials and this is how I “code” so it may seem strange. I really hope to not creating a compele mess.
Here is my node-setup:
![alt text][1]

Here Im seting up his Max HP + a simple healthbar (In the Blueprint of my character)

Here Im difing that he is getting FallDamage. (In the Blueprint of my character)

Here Im setting up that he can die. (In the Blueprint of my character)

And here Im telling what will happen when he dies. I want to let him respawn at a seperate checkpoint. (In the Blueprint of my character)

Here is also the checkpoint. This is set in another Blueprint. Just a simple box somewhere in the level.

For some reason its just not working. My charakter can die properly, and he is even exploding. Everything is fine… But he will not respawn. Especially not at the checkpoint. I checked another Tutorial where I defined a respawining place (MANUALLY =[) There it worked but then all the attridbutes had been reseted as well (running speed and jump sttrenghth, that I adjusted earlyer …)

With the current nodesetup I even get an error message when I die. It says:

  • Play in editor start time for
    /Game/ThirdPersonBP/Maps/UEDPIE_0_ThirdPersonExampleMap
    0,544
  • TravelFailure: InvalidURL, Reason for
    Failure: ‘Invalid URL:
    /Game/ThirdPersonBP/Maps/ThirdPersonExampleMap’.
    Shutting down PIE.
  • TravelFailure: ClientTravelFailure,
    Reason for Failure: ‘Invalid URL:
    /Game/ThirdPersonBP/Maps/ThirdPersonExampleMap’.
    Shutting down PIE.

So I am really sorry if this question may be bad but I am very new, and trying around a bit.

  • Is this node setup senseless in
    anyways or is it possible to do it
    like this?
  • How can I make my cahracter respawn at the Checkpoints? Where is the Mistake, I dont get it.
  • If this is the wrong way all alond I would be very glad for any solutions.

Thank you so much!

First thing to catch my eye: You do not set the visibility to true after teleporting the Player. You also do not re-enable the Input. You might also want to destroy the Third Person Character, use “SpawnActorFromClass” to spawn a new one, then use “Possess” on that new character. You should also open the level inside your Game Instance since it is persistent on level load.

It’s late here, so I might have missed a few things. Hope any of this helps.