ambush beta
Function of @v12-engine/engine/ai
ts
export declare function ambush(place: MissionPlace, options?: MissionPartOptions & {
radius?: number;
trigger?: AiCondition;
then?: AmbushThen;
once?: boolean;
}): AiModuleDef;Its units wait at a place on hold (they hit what walks into reach and move for nothing), and spring once a rival's unit comes within radius of it (or once trigger holds): they go for the intruders, fighting what they meet. Once that fight is over, then (AmbushThen). once: it springs the first time only. Its units: those at the place as it is first picked, or what units say