Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

NpcFollowOptions

Defined in: shared.d.ts:257

How npc.follow() walks after its target, in the NPC’s own gaits (see NpcMoveOptions).

optional distanceCm?: 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.


optional gait?: 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.


optional speedScale?: 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.


optional teleportBeyond?: number

Defined in: shared.d.ts:267

Metres; use teleportBeyondCm.


optional teleportBeyondCm?: 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.


optional then?: 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”.