How to tell when a player has connected or disconnected.

Hey all,

Still got the other issue with server dissapearing from internet after 5-10 mins or so. But in an effort to fix it I’m trying the debug system with the NetworkManager.

I’m trying to check when a player disconnects at the moment. I found OnPlayerDisconnected(NetworkPlayer player) and have been TRYING to use this. Only to find out (from a random post and not the docs) that it’s deprecated and not used in Unet.

So is there a replacement function that gets called on the server when a player disconnects?

Okay… Just found OnServerConnect and OnServerDisconnect… but I’m not using a custom NetworkManager, just the stock/off-the-shelf one. So… how do I override or hook into these two functions?