1.
; *** ENGINEERING Parameters ***
RadarPriority = STRUCTURE
KindOf = PRELOAD STRUCTURE SELECTABLE SCORE FS_FACTORY REPAIR_PAD FS_WARFACTORY MP_COUNT_FOR_VICTORY IMMUNE_TO_CAPTURE VEHICLE HUGE_VEHICLE CAN_CAST_REFLECTIONS EMP_HARDENED CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT SPAWNS_ARE_THE_WEAPONS GARRISONABLE_UNTIL_DESTROYED;AUTO_RALLYPOINT IMMOBILE
This is important.
You can remove things such as "SPAWNS_ARE_THE_WEAPONS", "EMP_HARDENED", "GARRISONABLE_UNTIL_DESTROYED" and any other KindOf that you don't need. Just don't remove "STRUCTURE"(I think), "FS_FACTORY" and "FS_WARFACTORY"("FS_BARRACKS" if it trains infantry)
2.
Behavior = ProductionUpdate ModuleTag_05
NumDoorAnimations = 1
DoorOpeningTime = 4000 ;in mSeconds
DoorWaitOpenTime = 2000 ;in mSeconds
DoorCloseTime = 5000 ;in mSeconds
ConstructionCompleteDuration = 1500 ;in mSeconds
End
Behavior = DefaultProductionExitUpdate ModuleTag_06
UnitCreatePoint = X: 0.0 Y:0.0 Z:0.0
NaturalRallyPoint = X: 50.0 Y:0.0 Z:0.0;NaturalRallyPointX must always match GeometryMajorRadius! -ML
End
Behavior = RepairDockUpdate ModuleTag_07
TimeForFullHeal = 5000 ;(in milliseconds)
NumberApproachPositions = 5
End
This is important.
ProductionUpdate alone makes it make units. You don't need DoorAnimation shenanigans, actually.
DefaultProductionExitUpdate is where the unit is spawned from in relation to wear the unit is facing.
RepairDockUpdate is optional. Replace it with the appropriate Module to heal infantry-- otherwise, if you don't want units being repaired/healed by this unit, remove the module.
<3>
CommandButton RS_BuildRevenger
Command = UNIT_BUILD
Option = MUST_BE_STOPPED ;this makes its so that it can only be clicked/used once its not moving.
Object = RS_Revenger
TextLabel = CzAM:Tank_MBT
ButtonImage = CzAM_RS_MBT
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CzAM:Tank_MBTToolTip
End
This is optional, this is on the side of CommandButtons.
If you want the unit to stop before making units.
Otherwise, you can still make this work with Bike Logic.
Its complicated tho.