Skip to content

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

Function: stopSpot() ​

stopSpot(ai, eid, from): object

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

Where a SWAT van stops for a player: by the kerb of a road (off its carriageway, on the side nearer the player, out of the cruisers' way) SWAT.stopMin to .stopMax from them, as near the preferred distance as it can be, off the line they face or drive along, the nearer the van the better; else a point that far round them.

Parameters ​

ai ​

AiWorld

eid ​

number

from ​

x ​

number

z ​

number

Returns ​

object

x ​

x: number

z ​

z: number