Skip to content

five-on-it / packages/ai/src/police / wantedView

Function: wantedView() ​

wantedView(ai, client, eid?): object

Defined in: packages/ai/src/police.ts:1287

A player's Wanted level as they are shown it: the stars, the Heat (whole), whether the police see them, and the stars of the car they sit in when it has Heat of its own (M1; eid, their character, when the caller knows it).

Parameters ​

ai ​

AiWorld

client ​

number

eid? ​

number

Returns ​

object

car? ​

optional car?: number

heat ​

heat: number

seen ​

seen: boolean

stars ​

stars: number