Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

AvatarPreview

const AvatarPreview: object

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

A live figure of yourself framed into a rect, for a gear pane: the world backend puts it in front of a camera-locked slab.

create(options): number

Starts an avatar preview and returns its id, or 0 when refused (state(0).status says why). One at a time: a new one replaces the last, and emotePreview’s show takes the figure back.

AvatarPreviewOptions

anchor is required.

number

destroy(id): boolean

Drops the figure and gives back every view setting it held.

number

From create.

boolean

play(id, clip, loop?): boolean

Plays a clip on the figure, the same machinery as emotePreview.

number

From create.

string

AnimSequence object path; “” returns to the default looping idle.

boolean

Default true.

boolean

state(id): AvatarPreviewState

What the avatar preview is showing now.

number

From create, or 0.

AvatarPreviewState

update(id, options): boolean

False for a dead id or a malformed field (state(id).status names it); nothing is applied then.

number

From create.

Partial<AvatarPreviewOptions>

Merged into the current options.

boolean