Global Command: initGameClient

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 12:27, 19 May 2023 by EK (talk | contribs) (Created page with "Initialize the GOG Galaxy client with the given values. {| class="ts" |- | style="width:15%" | Related functions | Global Command: getGameClientAchievement|getGameClientAch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Initialize the GOG Galaxy client with the given values.

Related functions getGameClientAchievement | getProperty | getGameClientStat | resetGameClientStats | setGameClientAchievement | setGameClientStat


Syntax

initGameClient(clientID, clientSecret)


Parameters

Parameter Type Description
clientID string The GOG Galaxy Client ID of your game.
clientSecret string The GOG Galaxy Client Secret of your game.


Return values

Type Description
boolean True if the GOG Galaxy successfully initialized, false if the initialization failed.


Examples

Example 1: Initialize the GOG Galaxy client.

initGameClient("50225266424144145", "45955f1104f99b625a5733fa1848479b43d63bdb98f0929e37c9affaf900e99f")