PlayerMoveOptions
Defined in: server/api.d.ts:137
How player.moveTo and player.follow walk a player.
Properties
Section titled “Properties”acceptRadius?
Section titled “acceptRadius?”
optionalacceptRadius?:number
Defined in: server/api.d.ts:176
moveTo only. cm, 10..2000, default 75: how close counts as arrived.
distanceCm?
Section titled “distanceCm?”
optionaldistanceCm?:number
Defined in: server/api.d.ts:181
follow only. cm, 50..3000, default 200: the follower rests inside this distance and walks again once the target pulls 100 cm past it.
optionalgait?:"walk"|"jog"
Defined in: server/api.d.ts:146
“walk” (default, about 156 cm/s) or “jog” (about 450 cm/s), as a full stick reaches them.
lockInput?
Section titled “lockInput?”
optionallockInput?:boolean
Defined in: server/api.d.ts:171
Default true: the player’s own movement, casting and other controls are stopped while the drive runs. Camera look stays.
owner:
string
Defined in: server/api.d.ts:141
Owner tag, required. A player walks one drive at a time: a new one ends the running one with “replaced”, and stopMoving(owner) ends only this owner’s.
optionalpath?:"direct"|"nav"
Defined in: server/api.d.ts:166
“nav” (default) walks a navmesh path, a straight line where the navmesh has none; “direct” always walks straight.
speed?
Section titled “speed?”
optionalspeed?:number
Defined in: server/api.d.ts:151
cm/s, 80..450; overrides gait. Reached by tilting the stick part way, the way a half-pressed gamepad stick walks slower.
optionalttl?:number
Defined in: server/api.d.ts:156
Seconds after which the drive ends with “expired”. 0 (default) = until it ends on its own. Wins over ttlMs.
ttlMs?
Section titled “ttlMs?”
optionalttlMs?:number
Defined in: server/api.d.ts:161
Deprecated
Section titled “Deprecated”Milliseconds; use ttl, in seconds.