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

Correct Procedure to Immediately Kick a Player (Server-side) in UNET

$
0
0
Hi guys,

I'm currently attempting to solve some issues we're having when multiple players all attempt to join into the last slot on the server at the same time.

I'm using a custom NetworkManager, and would like to be able to kick players during OnServerAddPlayer(NetworkConnection conn, short playerControllerId).

At this point, doing:

conn.Disconnect();

sort-of works, but generates errors on the server which are probably breaking some other things I've not noticed yet (my previous...

Correct Procedure to Immediately Kick a Player (Server-side) in UNET

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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