steam_clear_achievement

Clear a given achievement so it can be awarded again.

Syntax:

GML Code Example

steam_clear_achievement(ach_name);


Argument Description
ach_name The name of the achievement to clear (string).


Returns: N/A


Description

With this function you can tell the Steam API to clear (reset) a specific achievement. The achievement should have been previously defined on the Steamworks control panel accounts page for your game and the string that is passed to the function should match that used as the API Name on the control panel.


Example:

GML Code Example

if mouse_check_button_pressed(mb_left)
    {
    steam_clear_achievement("Ach_Game_Win");
    steam_clear_achievement("Ach_Died_10_Times");
    steam_clear_achievement("Ach_Killed_100_Enemies");
    steam_clear_achievement("Ach_Beat_Boss_Level_1");
    }
 

The above code will reset the achievements of the game when the user clicks the left mouse button.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here