spawn.spawnCreep(body, name, opts?)
Submit a Creep spawn request. Validate name, body, Energy, dryRun, and the final return code.
Open in API reference →OBJECT 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
These entries come from the shared quick-reference dataset. The highest-value surfaces stay visible; secondary entries remain available on demand.
spawn.spawnCreep(body, name, opts?)Submit a Creep spawn request. Validate name, body, Energy, dryRun, and the final return code.
Open in API reference →spawn.renewCreep(creep)Use an owned Spawn to extend an eligible normal Creep's lifetime while accounting for Spawn occupancy and Boost limits.
Open in API reference →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.
Open in API reference →RETURN CODES
These are the return-code paths already connected to this object in the site's existing guides and error reference.
ERR_NAME_EXISTS return -3ERR_BUSY return -4ERR_NOT_ENOUGH_RESOURCES return -6ERR_NOT_IN_RANGE return -9GUIDES
Use the focused guides for workflow details instead of duplicating full tutorials on this hub.
PROVE
Only guides that pass the existing Markdown acceptance boundary and have an accepted Console or live verification level appear here.