Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

LocalPlayerGait

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

The local player’s walk/jog gait. Off by default: a server opts in with setWalkDefault(true), which makes walking the default and turns “C” into walk-to-jog instead of the other way round, and keeps that choice across sprints, which vanilla does not.

get(): string

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

The gait the player is currently set to: “walk”, “jog”, “sprint”, “idle”, “slowwalk”, “fastwalk”, or “none” before the pawn exists.

string


set(gait): boolean

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

Sets the gait outright, as if the player had pressed the toggle. Returns false for any other name, or before the pawn exists.

string

“walk” or “jog”.

boolean


setWalkDefault(on): boolean

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

Enables RP locomotion for this client. Applies on the next spawn and re-applies after death or travel.

boolean

true to walk by default and hold the player’s choice through sprints.

boolean


walkDefault(): boolean

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

Whether RP locomotion is currently enabled on this client.

boolean