Skip to content

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

Function: enlist() ​

enlist(ai, npc, role, team, client): void

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

Makes an NPC a police specialist of a role: an officer (drawn in the team's black when it is one of a team), armed, with its orders.

Parameters ​

ai ​

AiWorld

npc ​

NpcState

role ​

SwatRole

team ​

number

client ​

number

Returns ​

void