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

ovr_Achievements_AddFields Function

Unlock fields of a BITFIELD achievement. ovrMessage_Achievements_AddFields 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_AddFields(const char *name, const char *fields)

Parameters

name: const char * The api_name of the Bitfield achievement whose field(s) will be unlocked, which can be retrieved by ovr_AchievementDefinition_GetName().
fields: const char * A string containing either '0' or '1' characters. Every '1' will unlock the field in the corresponding position.

Returns