EOS API reference page for EOS_Achievements_CopyPlayerAchievementByAchievementId

2 분 소요

This function is part of the Achievements Interface.


Fetches a player achievement from a given achievement ID.

Return Value

  • EOS_Success if the information is available and passed out in OutAchievement

  • EOS_InvalidParameters if you pass a null pointer for the out parameter

  • EOS_NotFound if the player achievement is not found

  • EOS_Invalid_ProductUserID if you pass an invalid user ID

See Also




Parameter Type And NameUsage Information
EOS_HAchievements Handle
const EOS_Achievements_CopyPlayerAchievementByAchievementIdOptions* OptionsStructure containing the Product User ID and achievement ID being accessed
EOS_Achievements_PlayerAchievement** OutAchievementThe player achievement data for the given achievement ID, if it exists and is valid, use EOS_Achievements_PlayerAchievement_Release when finished

If successful, this function provides data to the caller through an output parameter. Once you are finished with the data, you must release it by making the appropriate call into the EOS SDK.