Difference between revisions of "Global Command: getGameClientAchievement"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "Get the current state of an achievement. ''Note: this command only works, if the Steam API/GOG Galaxy library was loaded and if a Steam/GOG Galaxy account for your game exist...") |
|||
Line 1: | Line 1: | ||
− | Get the current state of | + | Get the current state of a game client achievement. |
''Note: this command only works, if the Steam API/GOG Galaxy library was loaded and if a Steam/GOG Galaxy account for your game exists.'' | ''Note: this command only works, if the Steam API/GOG Galaxy library was loaded and if a Steam/GOG Galaxy account for your game exists.'' |
Latest revision as of 12:11, 19 May 2023
Get the current state of a game client achievement.
Note: this command only works, if the Steam API/GOG Galaxy library was loaded and if a Steam/GOG Galaxy account for your game exists.
Related functions | getGameClientStat | getProperty | initGameClient | resetGameClientStats | setGameClientAchievement | setGameClientStat |
Syntax
getGameClientAchievement(apiName)
Parameters
Parameter | Type | Description |
---|---|---|
apiName | string | The name of the requested achievement. This is the API name specified in the Steam/GOG Galaxy account. |
Return values
Type | Description |
---|---|
boolean | True if the achievement is set, false if it is not set or the operation failed. |
Examples
Example 1: Get state of a game client achievement.
getGameClientAchievement("achv_easteregg_1")