Need to check if local is acting as "host" or "client"

How would I best tell if the local client is acting as the server host, or the client?

1 Like

On any object that is derived from NetworkBehaviour, you can do “isServer” as long as that object is active (meaning it’s been spawned in by the server). You can also do NetworkServer.active from anywhere (since it’s static) to check if the Server is running.

“isServer” on host or on client is always false, but “isClient” is true only on client - thats your way to go;)
and one more important thing - check it inside Start method, not in Awake! in Awake all that amazing stuff is false, including “isLocalPlayer”:rage: