Spawn items in multiplayer match

Hi there,
We have been using Nakama successfully for some basic multiplayer clients in JS, for simple things like players walking on a map, or displaying an emote or player action.

We would now like to have something like: an object say a key that the server spawns at a specific location on the multiplayer map. The first of many logged in players could then retrieve the 1 key and carry it.

What would you recommend for a secure method or pattern to implement this type of functionality ?

you should define a netcode/message for this case, client send a message with this code and server side handle to generate object

1 Like