ID:173554
 
I need a better way of checking if someone is the host in my game. I first tried just using the 1st person to login, but that was an obvious failure. I noticed when I host, my client.address is allway 0, logged. Is that a way I could chack if someone is the host, or will a value show when DD is hosting? If anyone knows a flawless way of checking, tell me. (If it does show when hosting with DD, I could do a second check to see with world.address==client.address.)
I typically check if the address is null, just like you said.

if(!src.client.address)
worldhost = src.ckey // I never use key, I always use ckey

I have never had a problem when checking it like this.
In response to Polatrite
Ok, I'll go with that. I'll also do the second check for so anyone on the same computer gets the status. If it's that computer hosting it, the person using it should always be given the control. Thanks.