five-on-it / packages/ai/src/police-swat / SwatMember
Interface: SwatMember
Defined in: packages/ai/src/police-swat.ts:182
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:185
exitAt
exitAt:
number
Defined in: packages/ai/src/police-swat.ts:195
The tick it gets out of the van (−1: not yet told).
face
face:
number|undefined
Defined in: packages/ai/src/police-swat.ts:189
Which way it faces with nobody to aim at (rad).
fires
fires:
boolean
Defined in: packages/ai/src/police-swat.ts:191
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:187
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:183
team
team:
number
Defined in: packages/ai/src/police-swat.ts:184
throwing
throwing:
SwatThrow|undefined
Defined in: packages/ai/src/police-swat.ts:193
A throw under way.