Just remove the SupplyTruckAIUpdate module and replace it with the above. The WorkerAIUpdate is intended for a unit that can harvest and construct. I assume your RedGuard will only be able to construct, so in that case, use the
DozerAIUpdate...
Code:
Behavior = DozerAIUpdate AI
RepairHealthPercentPerSecond = 2%
BoredTime = 5000
BoredRange = 150
AutoAcquireEnemiesWhenIdle = Yes
End Again, if you don't want the RedGuard to be able to repair structures, use this...
Code:
Behavior = DozerAIUpdate AI
AutoAcquireEnemiesWhenIdle = Yes
End Also note that you need
KindOf = DOZER for both the RedGuard and SupplyTruck. Furthermore, you can only have one AI module for an object, so you must also remove the
AIUpdateInterface module from the RedGuard.