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.
Methods
Section titled “Methods”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.
Returns
Section titled “Returns”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.
Parameters
Section titled “Parameters”string
“walk” or “jog”.
Returns
Section titled “Returns”boolean
setWalkDefault()
Section titled “setWalkDefault()”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.
Parameters
Section titled “Parameters”boolean
true to walk by default and hold the player’s choice through sprints.
Returns
Section titled “Returns”boolean
walkDefault()
Section titled “walkDefault()”walkDefault():
boolean
Defined in: client/api.d.ts:4116
Whether RP locomotion is currently enabled on this client.
Returns
Section titled “Returns”boolean