Skip to content

five-on-it / packages/ai/src/chaos / startRiot

Function: startRiot() ​

startRiot(ai, at, seconds?): Riot

Defined in: packages/ai/src/chaos.ts:360

Starts a riot at a place: the live pedestrians within RIOT.draw of it, the nearest first, and new ones beside it while the crowd's budget allows, up to RIOT.count. Returns it.

Parameters ​

ai ​

AiWorld

at ​

x ​

number

z ​

number

seconds? ​

number = RIOT.seconds

Returns ​

Riot