Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

GameKit.Achievement.New

Initializes a new achievement object for the local player.

Component Version macOS Windows Linux Server iOS SDK
GameKit 8.5 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "GameKit.Achievement.New"; Identifier { ; Player } )   More

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

This function is free to use.

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


GameKit.Achievement.LastReportedDate - GameKit.Achievement.Player