#Showing errors after getting auth and using a command

6 messages · Page 1 of 1 (latest)

upbeat badger
#

The onlobbyjoined() function is being called from a normal monobehavior script.

#

Showing errors after getting auth and using a command

rare flume
#

OnLobbyJoined runs on server? As it can assign authority only on server. however you call CMD from that function, you cannot call CMD from server. You call RPC from server.

upbeat badger
rare flume
#

are you following UNET tutorial?

#

as you dont really need to give authority manually. Playerobject get authority automaticly when you spawn playerobject for it with NetworkServer.AddPlayerForConnection(conn, gameobject);