Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Settings

const Settings: object

Defined in: client/api.d.ts:5353

The player’s OWN game settings, the same values the pause menu writes. These are a preference, not a scratchpad: write them only where the player asked for it (a settings panel), and reach for Audio.setState/setRTPC when a gamemode wants to duck audio for a moment. Those compose on top of the preference instead of overwriting it, so nothing has to be put back afterwards. Display, resolution and input rebinds are deliberately absent.

getAccessibility(): object

The accessibility page. arachnophobia is the game’s Arachnophobia Mode, the pause menu’s own checkbox, which changes how spiders look and sound.

object

arachnophobia: boolean | null

getAudio(): object

The audio page of the player’s settings. Volumes are 0..1. A field is null when the game would not report it, which is every field before the settings object exists.

object

effects: number | null

menuReaderEnabled: boolean | null

menuReaderVolume: number | null

mono: boolean | null

music: number | null

muted: boolean | null

subtitles: boolean | null

voice: number | null

getHud(): object

The HUD and minimap page: minimal, notifications, specialNotifications, xp, mission, tutorial, spell, map, meters, beacons, target, targetName, targetHighlights, toolWheel, enemyDamage, beastControls (boolean|null each), minimapSize (number|null), minimapOpacity (number|null, 0..1), minimapPath (boolean|null).

object

setAccessibility(patch, options?): number

Writes the accessibility page. Applies live, as the pause menu’s checkbox does. Player-driven only: a gamemode must never switch Arachnophobia Mode off for a player who turned it on.

Any subset of getAccessibility()’s fields.

boolean

As setAudio.

boolean

number

How many keys were applied.

setAudio(patch, options?): number

Writes the audio page. Player-driven only; see the namespace note.

object

Any subset of getAudio()’s fields. Volumes are clamped to 0..1; absent fields are left alone.

persist = true writes the player’s saved settings for real, which is what a settings panel wants. Default false applies for this run only — but the game saves on its own schedule too, so do not rely on false to keep a change out of the ini.

boolean

number

How many keys were applied; compare against how many you passed.

setHud(patch, options?): number

Writes the HUD page. To hide UI for a cutscene or a duel this is the wrong tool — it edits what the player chose and would have to be undone afterwards.

object

Any subset of getHud()’s fields.

As setAudio.

boolean

number

How many keys were applied.