How to restart and reset a level

Hi,

When my character dies, I just want to restart the level from my original playerstart location, I also want to reset the position of an NPC I have in the level, not sure how to do this or where, at the map level or character level or somewhere else?

Try

image

When I get attacked by the NPC (death) it looks like it restarts me in the exact spot I died and the NPC is still in the same spot too, so I just keep getting killed over and over

Did you use the above?

Yes I did

1 Like

Weird.

Another thing you could try is just ‘open level’ on the same level.

one thing worked out when I can’t move, I had to put a ‘Enable Input’ before the Restart Game begins, but I need something to start me back at my player spawn

1 Like

Not sure, sorry. But there are the basic methods… :slight_smile:

I tried doing this, but I could find a ‘PlayerStart’ for ‘Start Spot’

You can put a player start in the level, and then ( if not in level BP )

still not working :confused: could you review the code please?

I think it’s because you’re doing it from inside the player.

This code kills the player, so the last part never gets to run.

Have you got the editor set to use the player start?

it does use the default player start, it makes sense to me to change the restart game into the map blueprint instead of the player but I’m not sure how

Have you tried just using ‘open level’?

oh sorry no it is working as intended I just interpreted what was happening wrong, the player just isn’t going back to PlayerStart + I can see the player character bp is destroyed when attacked so when I attempt to possess it won’t work because its not there anymore… not sure

Before attacked

After attack

Also Default GameMode is BP_ThirdPersonGameMode not GameBase if that’s any help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.