steam_clear_achievement

Clear a given achievement so it can be awarded again.

Syntax:

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:

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.


Back: Steam API
Next: steam_set_stat_int
© Copyright YoYo Games Ltd. 2018 All Rights Reserved