Hi
On my project I want to be able to handle host disconnections using the network error messaging system.
I’m having trouble binding to the OnNetworkFailure() event in engine.h. I’ve created the function below in my game instance header:
void HandleNetworkFailure(UWorld * World, UNetDriver * NetDriver, ENetworkFailure::Type FailureType, const FString & ErrorString);
However when I’m trying to implement the function within the game instance cpp file its telling me that the declaration is incompatible with the header:
void MyGameInstance::HandleNetworkFailure(UWorld * World, UNetDriver * NetDriver, ENetworkFailure::Type FailureType, const FString & ErrorString)
{
}
I’ve tried to move the declaration around but it doesn’t seem to want to accept the definition and looked at the header within engine.h and it matches the parameters.
If anyone could help that would be awesome.