Skip to content

five-on-it / packages/ai/src/crowd / CrowdOptions

Interface: CrowdOptions ​

Defined in: packages/ai/src/crowd.ts:272

How many pedestrians a crowd keeps, and where they may appear and go (m).

Properties ​

despawn? ​

optional despawn?: number

Defined in: packages/ai/src/crowd.ts:280

Pedestrians farther than this from every player go.


people? ​

optional people?: number

Defined in: packages/ai/src/crowd.ts:274

Pedestrians wanted (0 switches the crowd off; at most CROWD's maxPeople).


spawnMax? ​

optional spawnMax?: number

Defined in: packages/ai/src/crowd.ts:278

New pedestrians this far from the nearest player at most.


spawnMin? ​

optional spawnMin?: number

Defined in: packages/ai/src/crowd.ts:276

New pedestrians this far from the nearest player at least.