View Single Post
Old 02-17-2004, 08:37 AM   #1 (permalink)
Kameiccillo
Member
 
Join Date: Apr 2003
Location: Australia
Posts: 30
Send a message via ICQ to Kameiccillo Send a message via MSN to Kameiccillo
Default Infantry Squads need help debugging

Hi Guys,
I'm making a mod for zero hour and I'm currently working on the InfantryGeneral, I'm making it so he can with a science build squads of infantry like how the vanilla china general gets two red guard when built. I have determined that the only way to achieve this is to make a copy of the minigunner and have this unit when created do a singleshot spawn and make two original minigunners. I'm currently testing this and have got it to the stage where a standard minigunner will spawn two tank hunters when created.

Here is the code for this in the minigunner:
Code:
  Behavior            = SpawnBehavior ModuleTag_23
    SpawnNumber       = 2
    SpawnTemplateName = Infa_ChinaInfantryTankHunter
    OneShot           = Yes
    AggregateHealth   = No
    SpawnedRequireSpawner = No
    SlavesHaveFreeWill = Yes
    SpawnReplaceDelay = 350
    InitialBurst = 0
    ExitByBudding = No
  End
  
  Behavior = QueueProductionExitUpdate ModuleTag_24
    UnitCreatePoint   = X:  0.0  Y:   -0.2   Z:0.0
    NaturalRallyPoint = X:  0.0  Y:  -0.2   Z:0.0
    ExitDelay     = 350 ; 5 sec
    ;InitialBurst = 2 ; the first set of 5 will not delay
  End
The problem is as seen in the screenshot is that when the minigunner is created the two spawned tankhunters don't go anywhere near the minigunner.



Can someone please help me work this out. Any help is appreciated.

Kameiccillo
Kameiccillo is offline   Reply With Quote