Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Broom

const Broom: object

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

The local player’s flying broom: handling, stuns and the mounted-cast gate.

addBoost(fraction): boolean

Adds a fraction of the max boost meter.

number

boolean

boost(): number | null

Current boost meter amount; null if unreadable.

number | null

canDismount(): boolean | null

Calls the mounted broom’s production AllowDismount gate. False while dismounted; null during an unreadable transition.

boolean | null

canMount(includeAvatarState?): boolean | null

Calls the game’s production CanUseBroom gate; null if the gate is unavailable.

boolean

Include the local avatar’s current gameplay state; defaults to true.

boolean | null

clearMaxHeight(): boolean

Releases this session’s ceiling override.

boolean

dismount(contextual?): boolean

Dismounts the local player. Returns false until state().mountSettled is true. Observe mountedOrTransitioning for completion.

boolean

When true, uses the normal gated input-side landing flow. Defaults to false, which force-dismounts through FastTravelManager and bypasses ground and no-dismount-zone checks.

boolean

equip(itemId?): boolean | null

Moves a stored broom into ActiveBroom using the production holder model. False while mounted or when the requested broom is not stored; null if inventory is unreadable.

string

Stored broom to equip; omitting it keeps the current selection or chooses the first stored broom.

boolean | null

inTurbo(): boolean | null

Whether the broom is in turbo; null if unreadable.

boolean | null

inventory(): BroomInventoryState | null

Returns the equipped broom id and stored broom rows; null if native inventory is unreadable.

BroomInventoryState | null

isEquipped(): boolean | null

Whether ActiveBroom contains an equipped broom; null if inventory is unreadable.

boolean | null

isInStorage(): boolean | null

Whether BroomStorage contains at least one unequipped broom; null if inventory is unreadable. May be true alongside isEquipped() when the player owns multiple brooms.

boolean | null

isMounted(): boolean

Whether the game reports the local player mounted or transitioning, excluding creature mounts — the game’s own predicate is mount-agnostic. See FlyingMount and GroundMount.

boolean

mount(): boolean

Starts the production broom mount flow through the gadget-wheel item-use path, which re-reads the ActiveBroom holder on every call — the broom that spawns is always the one equip() last put there. Observe state() for completion and retry while an async tool class loads.

boolean

mounted(): boolean

Old name of isMounted.

boolean

Use isMounted, as the is/has/can convention names a state getter.

resetOverrides(): boolean

Releases only overrides previously applied through Broom: height, input, force landing, and casting. Does not dismount or change inventory.

boolean

setCastingAllowed(allowed): boolean

Frees non-heavy spellcasting while broom-mounted (stock game allows only Revelio).

boolean

boolean

setForceLand(forceLand): boolean

Forces a landing. Use with setInputDisabled for a knock — never dismount, which writes the save.

boolean

boolean

setInputDisabled(disabled): boolean

Locks or restores rider input at Debug priority.

boolean

boolean

setMaxHeight(height): boolean

Overrides the flight ceiling (world Z) at Debug priority.

number

boolean

state(): BroomState

Returns structured mount state without parsing diagnostics.

BroomState

teleport(position, options?, z?, yaw?, resetCamera?): boolean

Moves the mounted rider, zeroing momentum: teleport(position, { yaw, resetCamera }). The positional teleport(x, y, z, yaw?, resetCamera?) still works. False when the destination is encroached.

number | Vector3Like

Where to, or the X of the older positional form.

number | { resetCamera?: boolean; yaw?: number; }

yaw (degrees) and resetCamera, or the older form’s Y.

number

number

boolean

boolean

older form only.

older form only.

older form only.

unequip(): boolean | null

Moves the active broom back to BroomStorage. False while mounted; null if inventory is unreadable.

boolean | null