#During client coroutine, stop all server action for the duration of the coroutine....

1 messages · Page 1 of 1 (latest)

stiff elk
#

When the turn changes from one player to another in my game, I have an coroutine animation that shows the new active player's avatar and name.

However, also when the turn changes, my server runs a bunch of "at beginning of turn" effects for the player. I want my server to wait until the coroutine on both clients, showing who's turn it is now, finishes.

I tried doing it in a convoluted way such that I run a serverrpc on only the active player's client that goes back to the server and tells it to run all the effects but I couldn't get that working. Is that the best way to do it or is there a simpler way I'm not thinking of?

Thanks!

tranquil dagger
#

You would have to send an RPC or set a NetworkVariable at the end of the client coroutine.