FlyingMount
constFlyingMount:object
Defined in: client/api.d.ts:6560
The local player’s flying creature mounts: hippogriff, onyx hippogriff and thestral.
Type Declaration
Section titled “Type Declaration”canDismount()
Section titled “canDismount()”canDismount():
boolean
Whether the active handler owns both a rider and a live creature, which is what the native teardown requires.
Returns
Section titled “Returns”boolean
canMount()
Section titled “canMount()”canMount():
boolean|null
Calls the game’s production gate. This is PERMISSION ONLY — it checks no-mount zones, map-area rules and the designer toggle, never ownership, so AND it with isEquipped(). It is also a global: a remote player standing in a no-mount zone flips it false for everyone, so do not trust a false as ‘this player may not mount’.
Returns
Section titled “Returns”boolean | null
dismount()
Section titled “dismount()”dismount(
animated?):boolean
Dismounts the local player. Returns false until the handler owns a live creature — the native reports success even when it changed nothing, so this refuses first. Asked mid-transition it cancels the transition rather than dismounting, so a second call may be needed.
Parameters
Section titled “Parameters”animated?
Section titled “animated?”boolean
Play the dismount transition instead of the instant teardown. Defaults to false.
Returns
Section titled “Returns”boolean
equip()
Section titled “equip()”equip(
itemId?):boolean|null
Moves a stored mount into the active holder using the production holder model — evict then insert, because the active holder has no native replace. False while mounted or summoning.
Parameters
Section titled “Parameters”itemId?
Section titled “itemId?”string
Stored mount to equip, e.g. HippogriffMount, OnyxHippogriffMount or ThestralMount.
Returns
Section titled “Returns”boolean | null
inventory()
Section titled “inventory()”inventory():
MountInventoryState|null
Returns the equipped mount id and stored rows; null if native inventory is unreadable.
Returns
Section titled “Returns”MountInventoryState | null
isEquipped()
Section titled “isEquipped()”isEquipped():
boolean|null
Whether the active holder contains a mount; null if inventory is unreadable.
Returns
Section titled “Returns”boolean | null
isFlying()
Section titled “isFlying()”isFlying():
boolean|null
Whether the ridden creature is airborne; null unless mounted.
Returns
Section titled “Returns”boolean | null
isInStorage()
Section titled “isInStorage()”isInStorage():
boolean|null
Whether the storage holder contains an unequipped mount; null if inventory is unreadable.
Returns
Section titled “Returns”boolean | null
isMounted()
Section titled “isMounted()”isMounted():
boolean
Whether the local player is riding a mount of this family. Settled state only — false through the summon animation, which summoning() covers.
Returns
Section titled “Returns”boolean
land()
Section titled “land()”land():
boolean
Requests a landing on the ridden creature. False unless mounted.
Returns
Section titled “Returns”boolean
mount()
Section titled “mount()”mount(
options?):boolean
Starts the production summon for whatever equip() last put in the active holder. The default goes through the gadget-wheel item-use path; either option routes through the mount tool directly, which is the only way to skip the animation or start airborne. The bool means ‘request admitted’, not ‘mounted’ — observe state() and retry while an async tool class loads.
Parameters
Section titled “Parameters”options?
Section titled “options?”transition defaults true (the bag summon animation); inFlight summons already airborne.
inFlight?
Section titled “inFlight?”boolean
transition?
Section titled “transition?”boolean
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.
setAutoLanding()
Section titled “setAutoLanding()”setAutoLanding(
enabled):boolean
Enables or disables the creature’s automatic landing.
Parameters
Section titled “Parameters”enabled
Section titled “enabled”boolean
Returns
Section titled “Returns”boolean
setFlyingGait()
Section titled “setFlyingGait()”setFlyingGait(
gait):boolean
Sets the minimum flying gait, which is the floor the rider’s own input cannot go below.
Parameters
Section titled “Parameters”"stop" | "hover" | "slow" | "fast"
Returns
Section titled “Returns”boolean
state()
Section titled “state()”state():
MountState
Returns structured mount state without parsing diagnostics.
Returns
Section titled “Returns”summoning()
Section titled “summoning()”summoning():
boolean
Whether a summon of this family has been accepted but has not seated the player yet.
Returns
Section titled “Returns”boolean
takeoff()
Section titled “takeoff()”takeoff(
skipAnimation?):boolean
Requests takeoff on the ridden creature. False unless mounted. Acceptance only: poll state().flying and re-ask, because the request can arrive before the creature will act on it.
Parameters
Section titled “Parameters”skipAnimation?
Section titled “skipAnimation?”boolean
Skip the takeoff animation. Defaults to false.
Returns
Section titled “Returns”boolean
unequip()
Section titled “unequip()”unequip():
boolean|null
Moves the active mount back to storage. False while mounted or summoning.
Returns
Section titled “Returns”boolean | null