Skip to content

five-on-it / packages/ai/src/police-cops / setCop

Function: setCop() ​

setCop(ai, client, team, dispatcher?): void

Defined in: packages/ai/src/police-cops.ts:229

Makes a player a cop of a team (P1), the dispatcher when dispatcher (P2); their team's budget opens at COPS.budgetStart. Any Wanted level of theirs is cleared.

Parameters ​

ai ​

AiWorld

client ​

number

team ​

number

dispatcher? ​

boolean = false

Returns ​

void