How to tell if register host fails?

Masterserver.registerhost only returns void and not an enumeration. Is there any way to tell if registering the host fails? There is plenty of support for clients but doesn’t seem as much for the server. Thanks!

Something like this (check the docs for more details):

function OnMasterServerEvent(msEvent : MasterServerEvent) {
	switch (msEvent) {
	case MasterServerEvent.RegistrationFailedGameName:
	case MasterServerEvent.RegistrationFailedGameType:
	case MasterServerEvent.RegistrationFailedNoServer:
		Debug.LogError("Server registration failed!");
		break;
	case MasterServerEvent.RegistrationSucceeded:
		Debug.Log("Server registered.");
		break;
	}
}

Awesome, I didn’t see that functions :slight_smile: