SetSteamAchievement

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 18:39, 3 April 2013 by AFRLme (talk)

Command 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:

setSteamAchievement(apiName, {flags=1, clear = true|false})


Example:

-- to do!


Arguments

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


Flags

clr/clear: boolean (true/false)
If true the achievement will be cleared. Default value is false!


Return

success
True if the achievement was set successfully, false if the operation failed!


Relevant Pages: getSteamAchievement - getSteamStat - resetSteamStats - setSteamStat