Skip to content

buildLineCommand beta ​

Variable of @v12-engine/engine

ts
buildLineCommand: import("./commands").DefinedCommand<"buildLine", {
    entities: import("./fields").Check<number[]>;
    unitType: import("./fields").Check<string>;
    from: import("./fields").Check<Vec2>;
    to: import("./fields").Check<Vec2>;
    queue: import("./fields").Check<boolean | undefined>;
}>

Lays a wall along a drag with the player's builders: a build order for each cell of the line (wallLine), queued after one another (after what they were doing, with queue), for the first builder of theirs among the ids that can build the type. What cannot be built where it is (a unit, a tree in the way) is refused there as one built by hand is