Skip to content

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

Function: startTransport() ​

startTransport(ai, captive, client, stars, fine, hooks, goTo?): Transport | undefined

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

Puts a captive in the back of a prison transport (M8; a mission's person too, P5, client −1): the van on the road nearest them, its driver at the wheel, the escort's car behind, on their way to the station. Returns the transport, or undefined when the room's cap has no room for it or there is no road near.

Parameters ​

ai ​

AiWorld

captive ​

number

client ​

number

stars ​

number

fine ​

number

hooks ​

Pick<CopHooks, "room">

goTo? ​

x ​

number

z ​

number

Returns ​

Transport | undefined