Broom
constBroom:object
Defined in: client/api.d.ts:1531
The local player’s flying broom: handling, stuns and the mounted-cast gate.
Type Declaration
Section titled “Type Declaration”addBoost()
Section titled “addBoost()”addBoost(
fraction):boolean
Adds a fraction of the max boost meter.
Parameters
Section titled “Parameters”fraction
Section titled “fraction”number
Returns
Section titled “Returns”boolean
boost()
Section titled “boost()”boost():
number|null
Current boost meter amount; null if unreadable.
Returns
Section titled “Returns”number | null
canDismount()
Section titled “canDismount()”canDismount():
boolean|null
Calls the mounted broom’s production AllowDismount gate. False while dismounted; null during an unreadable transition.
Returns
Section titled “Returns”boolean | null
canMount()
Section titled “canMount()”canMount(
includeAvatarState?):boolean|null
Calls the game’s production CanUseBroom gate; null if the gate is unavailable.
Parameters
Section titled “Parameters”includeAvatarState?
Section titled “includeAvatarState?”boolean
Include the local avatar’s current gameplay state; defaults to true.
Returns
Section titled “Returns”boolean | null
clearMaxHeight()
Section titled “clearMaxHeight()”clearMaxHeight():
boolean
Releases this session’s ceiling override.
Returns
Section titled “Returns”boolean
dismount()
Section titled “dismount()”dismount(
contextual?):boolean
Dismounts the local player. Returns false until state().mountSettled is true. Observe mountedOrTransitioning for completion.
Parameters
Section titled “Parameters”contextual?
Section titled “contextual?”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.
Returns
Section titled “Returns”boolean
equip()
Section titled “equip()”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.
Parameters
Section titled “Parameters”itemId?
Section titled “itemId?”string
Stored broom to equip; omitting it keeps the current selection or chooses the first stored broom.
Returns
Section titled “Returns”boolean | null
inTurbo()
Section titled “inTurbo()”inTurbo():
boolean|null
Whether the broom is in turbo; null if unreadable.
Returns
Section titled “Returns”boolean | null
inventory()
Section titled “inventory()”inventory():
BroomInventoryState|null
Returns the equipped broom id and stored broom rows; null if native inventory is unreadable.
Returns
Section titled “Returns”BroomInventoryState | null
isEquipped()
Section titled “isEquipped()”isEquipped():
boolean|null
Whether ActiveBroom contains an equipped broom; null if inventory is unreadable.
Returns
Section titled “Returns”boolean | null
isInStorage()
Section titled “isInStorage()”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.
Returns
Section titled “Returns”boolean | null
isMounted()
Section titled “isMounted()”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.
Returns
Section titled “Returns”boolean
mount()
Section titled “mount()”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.
Returns
Section titled “Returns”boolean
mounted()
Section titled “mounted()”mounted():
boolean
Old name of isMounted.
Returns
Section titled “Returns”boolean
Deprecated
Section titled “Deprecated”Use isMounted, as the is/has/can convention names a state getter.
resetOverrides()
Section titled “resetOverrides()”resetOverrides():
boolean
Releases only overrides previously applied through Broom: height, input, force landing, and casting. Does not dismount or change inventory.
Returns
Section titled “Returns”boolean
setCastingAllowed()
Section titled “setCastingAllowed()”setCastingAllowed(
allowed):boolean
Frees non-heavy spellcasting while broom-mounted (stock game allows only Revelio).
Parameters
Section titled “Parameters”allowed
Section titled “allowed”boolean
Returns
Section titled “Returns”boolean
setForceLand()
Section titled “setForceLand()”setForceLand(
forceLand):boolean
Forces a landing. Use with setInputDisabled for a knock — never dismount, which writes the save.
Parameters
Section titled “Parameters”forceLand
Section titled “forceLand”boolean
Returns
Section titled “Returns”boolean
setInputDisabled()
Section titled “setInputDisabled()”setInputDisabled(
disabled):boolean
Locks or restores rider input at Debug priority.
Parameters
Section titled “Parameters”disabled
Section titled “disabled”boolean
Returns
Section titled “Returns”boolean
setMaxHeight()
Section titled “setMaxHeight()”setMaxHeight(
height):boolean
Overrides the flight ceiling (world Z) at Debug priority.
Parameters
Section titled “Parameters”height
Section titled “height”number
Returns
Section titled “Returns”boolean
state()
Section titled “state()”state():
BroomState
Returns structured mount state without parsing diagnostics.
Returns
Section titled “Returns”teleport()
Section titled “teleport()”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.
Parameters
Section titled “Parameters”position
Section titled “position”number | Vector3Like
Where to, or the X of the older positional form.
options?
Section titled “options?”number | { resetCamera?: boolean; yaw?: number; }
yaw (degrees) and resetCamera, or the older form’s Y.
number
number
resetCamera?
Section titled “resetCamera?”boolean
Returns
Section titled “Returns”boolean
Deprecated
Section titled “Deprecated”older form only.
Deprecated
Section titled “Deprecated”older form only.
Deprecated
Section titled “Deprecated”older form only.
unequip()
Section titled “unequip()”unequip():
boolean|null
Moves the active broom back to BroomStorage. False while mounted; null if inventory is unreadable.
Returns
Section titled “Returns”boolean | null