Skip to content

five-on-it / packages/ai/src/police-swat / SwatMember

Interface: SwatMember ​

Defined in: packages/ai/src/police-swat.ts:183

A police specialist's orders and memory (an NpcState's swat): its role, its team (−1 for a K9 handler or a negotiator), the player it is after, where to stand and which way to face, whether to shoot at the player in sight, what to throw, the tick it gets out of the van.

Properties ​

client ​

client: number

Defined in: packages/ai/src/police-swat.ts:186


exitAt ​

exitAt: number

Defined in: packages/ai/src/police-swat.ts:196

The tick it gets out of the van (−1: not yet told).


face ​

face: number | undefined

Defined in: packages/ai/src/police-swat.ts:190

Which way it faces with nobody to aim at (rad).


fires ​

fires: boolean

Defined in: packages/ai/src/police-swat.ts:192

It shoots at the player when it sees them within its reach.


goal ​

goal: { feet?: number; x: number; z: number; } | undefined

Defined in: packages/ai/src/police-swat.ts:188

Where it walks to (m; feet, the floor there, when known), or nowhere: it stands.


role ​

role: SwatRole

Defined in: packages/ai/src/police-swat.ts:184


team ​

team: number

Defined in: packages/ai/src/police-swat.ts:185


throwing ​

throwing: SwatThrow | undefined

Defined in: packages/ai/src/police-swat.ts:194

A throw under way.