question

Mikhail Krushelnitsky avatar image
Mikhail Krushelnitsky asked

Can server starts multiplayer game?

Please tell me if the server (cloud script) can have control over the launch of multiplayer game servers. I want to implement the following logic: the cloud script checks if the player has enough funds to start the game, then it starts the multiplayer game and returns the server address to the client.

In-Game EconomyCustom Game Serversmultiplayer
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

Yes, it can. There is a RequestMultiplayerServer API which can be used to request a multiplayer server session. On CloudScript, you can use the predefined variable “multiplayer.xxx” to call this API. For example, multiplayer.RequestMultiplayerServer.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.