Skip to content

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

Interface: ChaserSpec ​

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

What to spawn a chaser as.

Properties ​

at ​

at: SpawnPoint

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

Where it starts, facing which way; its home.


carClass? ​

optional carClass?: number

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

Index of the car's class (the compact by default).


crew? ​

optional crew?: number

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

How many ride in the car, the driver included (the profile's crew by default; clamped to the seats).


mode ​

mode: "car" | "foot"

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

On foot, or driving a car of carClass spawned with it.


profile ​

profile: BehaviourProfile

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

How it behaves.


target? ​

optional target?: number

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

A character to go after (the player who asked for it), or none: whoever it sees.