five-on-it / packages/ai/src/system / ChaserSpec
Interface: ChaserSpec
Defined in: packages/ai/src/system.ts:474
What to spawn a chaser as.
Properties
at
at:
SpawnPoint
Defined in: packages/ai/src/system.ts:478
Where it starts, facing which way; its home.
body?
optionalbody?:number
Defined in: packages/ai/src/system.ts:488
Its body on foot (@foi/sim's BODY_PERSON by default; a robot dog's BODY_DOG).
carClass?
optionalcarClass?:number
Defined in: packages/ai/src/system.ts:482
Index of the car's class (the compact by default; a boat's is the compact's: a chaser comes by road).
crew?
optionalcrew?:number
Defined in: packages/ai/src/system.ts:484
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:480
On foot, or driving a car of carClass spawned with it.
profile
profile:
BehaviourProfile
Defined in: packages/ai/src/system.ts:476
How it behaves.
target?
optionaltarget?:number
Defined in: packages/ai/src/system.ts:486
A character to go after (the player who asked for it), or none: whoever it sees.