Skip to content

fleeWhen beta ​

Function of @v12-engine/engine/ai

ts
export declare function fleeWhen(condition: AiCondition, options?: Omit<MissionPartOptions, 'refill'> & {
    to?: MissionPlace;
}): AiModuleDef;

When the condition holds, its units run: to to (a place), else home, else away from the nearest rival; and stand there while it holds. Once it no longer does, they are let go of, and the parts that had them take them back. An urgent goal worth 10: it takes its units from any other. Its units: its fighters, or what units say