is there any way to wait for ChangeOwnership() on server-side ?

there are a server and clients.
i want to remove client's owner to server. Do something then give back to clients.

it seem's not work in one update frame that i use this method on server-side




is there any way like
WaitFor( NetworkObect.RemoveOwnership() ) ?

A coroutine that yields null once or twice should do the trick.

thank you for your reply, what if rpc network packet loss happend? the change ownership rpc not sent in time.

RPCs are sent reliable by default, a packet loss would lead to a re-send.

ok, i will try it, thank you!