waveFrom beta
Function of @v12-engine/engine/ai
ts
export declare function waveFrom(source: MissionPlace, options?: Omit<MissionPartOptions, 'units' | 'refill'> & {
group?: number | Record<string, number>;
every?: number;
minForces?: number;
first?: number;
target?: MissionTarget;
radius?: number;
}): AiModuleDef;The units that come out of a spawner (what the mission's own rules spawn there, or what a building there trains), gathered there and sent as a wave: once there are as many as group says (a number, or so many of each type or role: { footman: 4, caster: 1 }; 4 when left out), or, with every, every so many seconds with what has gathered (at least minForces of the group: a share, any when left out). A wave goes for target (MissionTarget) and, once that is cleared, for the next it knows of. first: seconds before the first wave may go (every, else none). Nothing is trained or built: a mission with no economy feeds it