Skip to content

five-on-it / packages/ai/src/system / addSeatBot

Function: addSeatBot() ​

addSeatBot(ai, eid, brain): NpcState

Defined in: packages/ai/src/system.ts:552

Makes a player's body a seat bot (seat-bot.ts): the character a run's room spawned for an AI player's seat (owned by the seat's client id, in its team's party, seated in its car), driven from now on by a brain of the kind asked, armed with the pistol when its brain shoots. Its home is where it stands. Returns its NPC state.

Parameters ​

ai ​

AiWorld

eid ​

number

brain ​

"crew" | "chaser" | "robber"

Returns ​

NpcState