Other great resources: Official JS API docs, Scripting Forum
CYBORG_FACTORY
a factory that can produce cyborgs
cyborgs built here using buildDroid() are DROID_CYBORG (for weapon cyborgs), DROID_REPAIR (for mechanic cyborgs) and DROID_CONSTRUCT (for engineer cyborgs)
usually there can be 5 of these factories per player, game settings allow limit to be set between 0 (none) → 5. some mods exist that allow more.