Skip to content

spawnPrefab beta ​

Function of @v12-engine/engine

ts
export declare function spawnPrefab(world: World, prefab: PrefabDef | string, options: SpawnPrefabOptions): SpawnedPrefab;

A prefab put down in the world as one: its objects spawned (world.spawn, for the owner given or as each says), its camps (spawnCamp: a world with camps seats the creeps, PlayerInit.creeps), its areas added under ids of their own; turned and sized around its middle as asked