Spawning Entities

Spawning units
To spawn units we have to first get the squad blueprint for the unit with BP_GetSquadBlueprint. Then we can create a squad group and deploy the squad into it. Finally the entity can be extracted from our squad group.

Keep in mind that the unit has to be precached by adding it to the wincondition's precache list or it won't show up properly in game.


 * -|Lua=


 * -|TypeScript=

If you know of a better way to spawn single units without creating entire squads first please edit this page.

Spawning Buildings
Spawning buildings is same as spawning units for most parts, but requires few additional steps.

Following example spawns keep next to start position of player at index 1.


 * -|Lua=


 * -|TypeScript=