Skip to content

placeUnits beta ​

Function of @v12-engine/engine

ts
export declare function placeUnits(world: World, player: PlayerId, records: readonly UnitRecord[], at: Vec2, spread?: number): Entity[];

Brings carried units into a mission for a player, round a point (spread apart, in rings: 1.5 when left out), each with its name, its share of health, its veterancy and its items. What the game no longer has, a type or an item, is left out. The units made, in the order of the records