This is what I know:
You can use this (below) to get units spawned at the creation of a building. I used it and was able to get ore miners and a few other units to be spanwed, but when I tried to get the repair drones built, the game would crash. I am guessing that the problem lies with the drone's coding, and not with the structure itself.
Code:
Behavior = SpawnBehavior ModuleTag_27
SpawnNumber = 3
SpawnReplaceDelay = 9999
SpawnTemplateName = UniTerrorDrone
OneShot = Yes
CanReclaimOrphans = No
SlavesHaveFreeWill = Yes
End
SpawnNumber = 3
SpawnReplaceDelay = 9999
SpawnTemplateName = UniTerrorDrone
OneShot = Yes
CanReclaimOrphans = No
SlavesHaveFreeWill = Yes
End
I guess what it comes down to, it is possible for a building to own a drone, and after that, can a drone that is owned by one unit repair another?