#Call a function when a client disconnects in Netcode for Entities

1 messages · Page 1 of 1 (latest)

nova geode
#

How can i call a function when a client / thin client disconnects?

cedar seal
nova geode
#

lemme see what i can do

nova geode
#

this system runs on the server

#

not on the client

cedar seal
#

Where are you grabbing SystemAPI.GetSingleton<NetworkStreamDriver>().ConnectionEventsForTick?

nova geode
#

or on the server it gives the list of the clients?

#

oh wait

#

it does

#

i'm stupid

nova geode
#

yep, now it works