Skip to content

rc_client_set_spectator_mode_enabled

Jamiras edited this page Jun 28, 2023 · 2 revisions

Sets whether spectator mode is enabled (off by default).

Syntax

void rc_client_set_spectator_mode_enabled(
    rc_client_t* client,
    int enabled
);

Parameters

client

The rc_client_t to modify.

enabled

1 to enable spectator mode, 0 to disable it.

Remarks

If spectator mode is enabled, unlocks and leaderboard submissions will not be sent to the server. Popups will still be shown.

This setting can be changed while a game is loaded. It is evaluated when unlocking achievements and submitting leaderboard entries.

If enabled before loading a game, a session for the game will not be started for the user, and the setting cannot be changed until the game is unloaded.

Minimum version: 11.0.0

See also

rc_client_get_spectator_mode_enabled

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