Skip to content

five-on-it / packages/ai/src/chaser / startFlee

Function: startFlee() ​

startFlee(ai, npc, threat, at): void

Defined in: packages/ai/src/chaser.ts:138

Starts the flee of a chaser carjacked out of its car by threat (−1 when unknown), who stood at at: whatever it was doing is dropped, and the carjacker is the one it will go after once the flee is over.

Parameters ​

ai ​

AiWorld

npc ​

NpcState

threat ​

number

at ​

x ​

number

z ​

number

Returns ​

void