API reference
API reference
Select your platform
No SDKs available
No versions available

ovr_Achievements_AddCount Function

Add 'count' to the achievement with the given name. This must be a COUNT achievement. The largest number that is supported by this method is the max value of a signed 64-bit integer. If the number is larger than that, it is clamped to that max value before being passed to the servers. ovrMessage_Achievements_AddCount will be generated in response.
First call ovr_Message_IsError() to check if an error occurred.
If no error occurred, the message will contain a payload of type ovrAchievementUpdateHandle. Extract the payload from the message handle with ovr_Message_GetAchievementUpdate().

Signature

ovrRequest ovr_Achievements_AddCount(const char *name, unsigned long long count)

Parameters

name: const char * The api_name of the achievement that will be adding count, which can be retrieved by ovr_AchievementDefinition_GetName().
count: unsigned long long The value of count that will be added to the achievement.

Returns