Skip to content

five-on-it / packages/ai/src/seat-bot / walkTo

Function: walkTo() ​

walkTo(ai, npc, goal, x): void

Defined in: packages/ai/src/seat-bot.ts:240

Walks (or runs) toward a point along a planned path, around what the rays find; on the floor of the point's height when it has one (a body's centre: someone on a roof), up the ladders and lifts on the way (steer-climb.ts). A hired hand walks so too (crew-hire.ts).

Parameters ​

ai ​

AiWorld

npc ​

NpcState

goal ​

x ​

number

y? ​

number

z ​

number

x ​

WalkExtras

Returns ​

void