PlayerController->ServerRestartPlayer() Bug(?)

Hey guys,

I’m currently trying to implement respawning via C++. Therefore I want to reset the Player(Controller) at some point. I do this with the following Code: (called from Character / Pawn)

MyPlayerController* pc = ((MyPlayerController*)(this->Controller));
if (pc)
{
	pc->ServerRestartPlayer();
}

But instead of doing anything ( / anything I could see in the game) it just logs:

LogPlayerController: SERVER RESTART PLAYER
LogPlayerController: ClientRetryRestart_Implementation MyCharacter_0, Acknowledged Pawn: MyCharacter_0

I’m glad about every answer,
thanks in advance!

ServerRestartPlayer only respawns the player if the PC is either inactive (dead) or spectating (both on the server, of course). If they are currently playing, then it just tries to re-acknowledge the pawn, which sounds like what you are seeing.

Exactly! I really appreciate your answer, I would’ve spent so much more time on this (now simple) problem, thanks a lot!