Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Global objectClient APIGenerated

EmoteWheel

const EmoteWheel: object

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

Which gesture each slot of this client’s emote wheel chooses.

The wheel has a fixed number of slots, numbered clockwise from the one straight up, and each chooses one row of the shipped catalog. They start out as the stock wheel – wave, big wave, nod, respectful nod, bow, cheer – and stay that way until a script changes them. A change is drawn on the next frame, including on a wheel held open.

Client-only and local: this arranges the wheel on this machine and nothing else. Every client can already play every gesture in the catalog, so a slot changes what is within reach, not what is allowed. The layout lasts for the session, and the next one starts from the default.

getCatalog(): EmoteCatalogEntry[]

Every gesture a slot can choose.

EmoteCatalogEntry[]

The catalog, in its own order.

getSlotCount(): number

How many slots the wheel has.

number

The slot count, which the catalog growing does not change.

getSlots(): number[]

The catalog id each slot chooses, in slot order.

number[]

One id per slot.

reset(): void

Puts every slot back to the stock wheel: wave, big wave, nod, respectful nod, bow, cheer.

void

setSlot(slot, emoteId): boolean

Points one slot at a catalog gesture. The same gesture may sit in more than one slot.

number

Zero-based, clockwise from straight up.

number

An id from getCatalog.

boolean

False, and nothing changes, when the slot is out of range or the id is not in the catalog.

setSlots(emoteIds): boolean

Lays out the whole wheel at once.

number[]

One catalog id per slot, in slot order; exactly getSlotCount() of them.

boolean

False, and nothing changes, when the list is the wrong length or any id is not in the catalog.