Whenever I try to start a game (in this case the FPS Template) with multiple clients
the additional clients fail to spawn and I get the warning:
“LogGameMode:Warning: Couldn’t spawn Pawn of type MyCharacter_C at PlayerStart”
According to the documentation/source code https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AGameMode/SpawnDefaultPawnFor/in
this happens if SpawnActor fails. However, I can’t figure out the actual cause of it (no log entries).
APawn* ResultPawn = GetWorld()->SpawnActor<APawn>(GetDefaultPawnClassForController(NewPlayer), StartLocation, StartRotation, SpawnInfo );
if ( ResultPawn == NULL )
{
UE_LOG(LogGameMode, Warning, TEXT("Couldn't spawn Pawn of type %s at %s"), *GetNameSafe(DefaultPawnClass), *StartSpot->GetName());
}