Skip to content

rc_runtime_get_achievement_measured

Jamiras edited this page Aug 30, 2021 · 2 revisions

Gets the current measured value and measured target for the specified achievement.

Syntax

int rc_runtime_get_achievement_measured(
    const rc_runtime_t* runtime,
    unsigned id,
    unsigned* measured_value,
    unsigned* measured_target
);

Parameters

runtime

Pointer to the runtime object that contains the achievement trigger reference.

id

The unique identifier of the achievement trigger.

measured_value

Pointer to an unsigned variable where the current Measured progress for the achievement should be written.

measured_target

Pointer to an unsigned variable where the target Measured value for the achievement should be written.

Return value

If the achievement is found, the return value is non-zero. If the achievement is not found, the return value is zero.

If the achievement is not found, is not active, or does not have Measured conditions, the measured_target will be 0.

Remarks

Minimum version: 10.0.0

See also

rc_runtime_activate_achievement

rc_runtime_deactivate_achievement

rc_runtime_do_frame

rc_runtime_format_achievement_measured

rcheevos

rc_client

Integration guide

client

user

game

processing

rc_client_raintegration

Integration guide

rc_runtime

rhash

rapi

common

user

runtime

info

Clone this wiki locally