I was able to compile it correctly once I added the same function to my class.
in the header file
public:
virtual bool SetPause(APlayerController* PC, FCanUnpause CanUnpauseDelegate = FCanUnpause());
in the cpp file
bool ACoinGameModeBase::SetPause(APlayerController* PC, FCanUnpause CanUnpauseDelegate /*= FCanUnpause()*/)
{
if (AllowPausing(PC))
{
// Add it for querying
Pausers.Add(CanUnpauseDelegate);
// Let the first one in "own" the pause state
AWorldSettings * WorldSettings = GetWorldSettings();
if (WorldSettings->Pauser == nullptr)
{
WorldSettings->Pauser = PC->PlayerState;
}
return true;
}
return false;
}