oBrain - ping and pseudoHost

oBrain.ping

Returns the round trip time from the client calling this to the server in ms. This is constantly updated as the server is continuously pinged 10 times a second.

oBrain.AmIPseudoHost

Boolean. Updated realtime from the server.

This compares the times at which every Client in your room joined the room and tells you if you are the earliest to join.

In many p2p games, it is necessary to provide a "host" or a "leader" and this variable tells you if you are the pseudoHost

Last updated