Skip to content

spawnCommand beta ​

Variable of @v12-engine/engine/debug

ts
spawnCommand: DefinedCommand<"debug.spawn", {
    unitType: Check<string>;
    owner: Check<number>;
    point: Check<import("./math").Vec2>;
    count: Check<number | undefined>;
    hidden: Check<boolean | undefined>;
}>

Creates something at a point, for a player: a building or a resource where there is room, or a group of units (count, 50 at most). hidden: what can be invisible is out of sight from the start