How change match state data by RPC?

How can i change match states from client? from RPC call for example.

I am trying to send player position to nearby players. Not all players of the match.

Does it necessarily have to be done via RPC? how about sending the match state via Nakama socket’s SendMatchStateAsync() on the client and catch the updated state in MatchLoop() in your server code (in golang or its equivalent Lua code)?

Yes thats lua code, how can i catch sent data from MatchLoop?

refer to the documentation at Authoritative Multiplayer - Nakama server

1 Like