Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How To Set The Network Owner

$
0
0
Hello,

I want to change my player character during the game but I cannot figure out how to set the network owner manually.
I've seen in the manual that they are using the MsgType.Owner for spawning the player objects at the beginning . But I've no idea how to use it.

I've tried somtihing like this:
Code (CSharp):
  1. NetworkServer.SendToClient(connectionId, MsgType.Owner, null);
Does somebody know how to do this in the new unity networking system?

Thanks a lot!

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>