Skip to content

five-on-it / packages/ai/src/system / spawnChaser

Function: spawnChaser() ​

spawnChaser(ai, spec): number

Defined in: packages/ai/src/system.ts:419

Spawns a chaser: a hostile character nobody owns, with its profile's hit points, in a car of its own when asked, with a crew of the profile's (or the spec's) size riding along as chasers of their own, as many as the car seats; returns the driver's entity id.

Parameters ​

ai ​

AiWorld

spec ​

ChaserSpec

Returns ​

number