Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

FlyingMount

const FlyingMount: object

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

The local player’s flying creature mounts: hippogriff, onyx hippogriff and thestral.

canDismount(): boolean

Whether the active handler owns both a rider and a live creature, which is what the native teardown requires.

boolean

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’.

boolean | null

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.

boolean

Play the dismount transition instead of the instant teardown. Defaults to false.

boolean

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.

string

Stored mount to equip, e.g. HippogriffMount, OnyxHippogriffMount or ThestralMount.

boolean | null

inventory(): MountInventoryState | null

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

MountInventoryState | null

isEquipped(): boolean | null

Whether the active holder contains a mount; null if inventory is unreadable.

boolean | null

isFlying(): boolean | null

Whether the ridden creature is airborne; null unless mounted.

boolean | null

isInStorage(): boolean | null

Whether the storage holder contains an unequipped mount; null if inventory is unreadable.

boolean | null

isMounted(): boolean

Whether the local player is riding a mount of this family. Settled state only — false through the summon animation, which summoning() covers.

boolean

land(): boolean

Requests a landing on the ridden creature. False unless mounted.

boolean

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.

transition defaults true (the bag summon animation); inFlight summons already airborne.

boolean

boolean

boolean

mounted(): boolean

Old name of isMounted.

boolean

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

setAutoLanding(enabled): boolean

Enables or disables the creature’s automatic landing.

boolean

boolean

setFlyingGait(gait): boolean

Sets the minimum flying gait, which is the floor the rider’s own input cannot go below.

"stop" | "hover" | "slow" | "fast"

boolean

state(): MountState

Returns structured mount state without parsing diagnostics.

MountState

summoning(): boolean

Whether a summon of this family has been accepted but has not seated the player yet.

boolean

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.

boolean

Skip the takeoff animation. Defaults to false.

boolean

unequip(): boolean | null

Moves the active mount back to storage. False while mounted or summoning.

boolean | null