Skip to content

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

Interface: ChaserSpec ​

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

What to spawn a chaser as.

Properties ​

at ​

at: SpawnPoint

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

Where it starts, facing which way; its home.


carClass? ​

optional carClass?: number

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

Index of the car's class (the compact by default; a boat's is the compact's: a chaser comes by road).


crew? ​

optional crew?: number

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

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:451

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


profile ​

profile: BehaviourProfile

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

How it behaves.


target? ​

optional target?: number

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

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