I’m coding host migration for my game with multiplayer and am trying to code in host migration, for this i’d need to know where in the code it detects disconnection and what it does after it. It’s been a bit hard to locate this spot so help would be appreciated
try this
GetEngine()->OnNetworkFailure().AddUObject(this, &MyGameInstance::HandleNetworkFailure);
GetEngine()->OnNetworkFailure().AddRaw(this, &NetworkFailure::HandleNetworkFailure);