GameKit.Achievement.New
-----------------------

Initializes a new achievement object for the local player.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GameKit](component_GameKit.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "GameKit.Achievement.New"; Identifier { ; Player } ) 

**MBS**( **"GameKit.Achievement.New";** /\* Initializes a new achievement object for the local player. \*/  
**$Identifier**; /\* The identifier for the archiement. \*/   
**$Player**) /\* Optional; The identifier for the player. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Identifier | The identifier for the archiement. |  |  |
| Player | The identifier for the player. |  | Optional |

### Result

Returns achievment identifier or error.

### Description

Initializes a new achievement object for the local player.  
Your game initializes a new achievement object only when it has not previously reported progress for that achievement. If your game has previously reported progress on an achievement, you should first retrieve the current progress by calling the [GameKit.LoadAchievements](GameKitLoadAchievements.md) function.  
  
The identifier string should be a reverse DNS style string, such as "com.mycompany.myapplication.myactivity". Zero-length strings are not allowed.  
### Examples

Make new achievement:

 MBS ( "GameKit.Achievement.New"; "de.mbsplugins.test")  
### See also

- [GameKit.Achievement.Player](GameKitAchievementPlayer.md)
- [GameKit.LoadAchievements](GameKitLoadAchievements.md)

This function is free to use.

Created 5th November 2018 , last changed 8th November 2018

  
[GameKit.Achievement.LastReportedDate](GameKitAchievementLastReportedDate.md) - [GameKit.Achievement.Player](GameKitAchievementPlayer.md)

[HTML Version](GameKitAchievementNew.shtml)