#Call a function when a client disconnects in Netcode for Entities
1 messages · Page 1 of 1 (latest)
there is a NetCodeConnectionEventListener
oh cool, thx
lemme see what i can do
tried doing this, but nothing is getting called when a client disconnects
this system runs on the server
not on the client
Where are you grabbing SystemAPI.GetSingleton<NetworkStreamDriver>().ConnectionEventsForTick?
isn't that only for the client?
or on the server it gives the list of the clients?
oh wait
it does
i'm stupid
like this then?
yep, now it works