Difference between revisions of "GetSteamAchievement"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "<b>History</b>: Available since <span style="color:green">v3.7</span> Gets current state of a steam achievement! {| class="mw-collapsible mw-collapsed" style="background: #f0...")
 
Line 22: Line 22:
 
<b><u>Arguments</u></b>
 
<b><u>Arguments</u></b>
  
apiName: "string"
+
apiName: "string" <br/>
 
The name of the requested achievement (this is the API name specified in the steam account for your game)
 
The name of the requested achievement (this is the API name specified in the steam account for your game)
  
 
Flags: none
 
Flags: none
  
Return: achievement
+
Return: achievement <br/>
 
True/false depending if the achievement is set or not, false if the operation failed
 
True/false depending if the achievement is set or not, false if the operation failed
 
{{i18n|GetSteamAchievement}}
 
{{i18n|GetSteamAchievement}}

Revision as of 17:46, 5 March 2013

History: Available since v3.7

Gets current state of a steam achievement!

Additional Info

This command will only work if the steam_api library was included (& successfully loaded) & if a steam account for your game exists!

Syntax:

getSteamAchievement(apiName)

Example:

n/a


Arguments

apiName: "string"
The name of the requested achievement (this is the API name specified in the steam account for your game)

Flags: none

Return: achievement
True/false depending if the achievement is set or not, false if the operation failed