OBJECT HUB

StructureSpawn API Hub

A focused hub for spawnCreep(), renewCreep(), recycleCreep(), Spawn return codes, and capacity planning.

Spawn work is more than memorizing one creation call. Name, body, Energy, busy state, replacement timing, and return codes belong to one lifecycle workflow.

API

Covered API surfaces

These entries come from the shared quick-reference dataset. The highest-value surfaces stay visible; secondary entries remain available on demand.

3
Structures

spawn.spawnCreep(body, name, opts?)

Submit a Creep spawn request. Validate name, body, Energy, dryRun, and the final return code.

SpawnCreepbodydryRun
Open in API reference →
Structures

spawn.renewCreep(creep)

Use an owned Spawn to extend an eligible normal Creep's lifetime while accounting for Spawn occupancy and Boost limits.

SpawnTTLticksToLiverenew
Open in API reference →
Structures

spawn.recycleCreep(creep)

Recycle a Creep you no longer need. The target must be near your Spawn and should be treated as an explicit one-way task.

SpawnCreeprecycle
Open in API reference →

RETURN CODES

High-signal return codes

These are the return-code paths already connected to this object in the site's existing guides and error reference.

Show more return codes · 2

GUIDES

Focused guides

Use the focused guides for workflow details instead of duplicating full tutorials on this hub.

LEARN

Knowledge modules

PROVE

Runtime verification

Only guides that pass the existing Markdown acceptance boundary and have an accepted Console or live verification level appear here.

0
No related guide is publicly Console/live verified yet.