NpcFollowOptions
Defined in: shared.d.ts:257
How npc.follow() walks after its target, in the NPC’s own gaits (see NpcMoveOptions).
Properties
Section titled “Properties”distanceCm?
Section titled “distanceCm?”
optionaldistanceCm?:number
Defined in: shared.d.ts:263
cm, 100..3000, default 200: it rests inside this distance and walks again once the target pulls 100 cm past it.
optionalgait?:MoveGait
Defined in: shared.d.ts:259
Default “walk”, its calm wander, which in some families is slower than a walking player; jog keeps up.
speedScale?
Section titled “speedScale?”
optionalspeedScale?:number
Defined in: shared.d.ts:261
The game’s own speed scale, 0.25..3; default 1. Jog and sprint follow it; the calm walk keeps its stride.
teleportBeyond?
Section titled “teleportBeyond?”
optionalteleportBeyond?:number
Defined in: shared.d.ts:267
Deprecated
Section titled “Deprecated”Metres; use teleportBeyondCm.
teleportBeyondCm?
Section titled “teleportBeyondCm?”
optionalteleportBeyondCm?:number
Defined in: shared.d.ts:265
cm behind the target past which the server puts the NPC beside it; 0 never. Default 6000. Wins over teleportBeyond.
optionalthen?:NpcIdle
Defined in: shared.d.ts:269
The idle it takes up where it stands once the follow ends; it becomes npc.idle and the spot npc.home. Default “stand”.