Skip to content

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

Interface: ChaserSpec ​

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

What to spawn a chaser as.

Properties ​

at ​

at: SpawnPoint

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

Where it starts, facing which way; its home.


carClass? ​

optional carClass?: number

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

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


crew? ​

optional crew?: number

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

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


mode ​

mode: "foot" | "car"

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

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


profile ​

profile: BehaviourProfile

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

How it behaves.


target? ​

optional target?: number

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

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