Right, here we go. I currently have:
- A nexus that can be killed, which releases the slaves ( good ).
- The units target anything the nexus targets ( good ).
- Clicking on any slave selects all units of the nexus ( good ).
- The slaves have individual health and can be targetted individually ( good ).
- A nexus that cannot be targetted and who's health stays with the slaves ( bad ).
- Clicking on the nexus means only the nexus is selected ( bad ).
Ideally, I would like those bad things eliminating, particually the one where only the nexus is selected and not its slaves. If only the nexus is selected, I would also be content with the slaves following him. However, I do not want a shared health system.
I tried making the nexus unselectable, but then it doesn't move with the rest of the slaves. Any other KindOfs or adjustments to the slave logic that can help?
Some code snippets from the nexus:
Code:
KindOf = PRELOAD CAN_ATTACK SELECTABLE INFANTRY MOB_NEXUS ATTACK_NEEDS_LINE_OF_SIGHT NO_COLLIDE CAN_CAST_REFLECTIONS SCORE
Behavior = SpawnBehavior ModuleTag_05
SpawnNumber = 8
SpawnTemplateName = AmericaInfantryMarine
SpawnTemplateName = AmericaInfantryM79Grenadier
SpawnTemplateName = AmericaInfantryM60Gunner
SpawnTemplateName = AmericaInfantryMarine
SpawnTemplateName = AmericaInfantryMarine
SpawnTemplateName = AmericaInfantryMarine
SpawnTemplateName = AmericaInfantryMarine
SpawnTemplateName = AmericaInfantryMarine
ExitByBudding = Yes;!
InitialBurst = 8
OneShot = Yes
AggregateHealth = Yes
SlavesHaveFreeWill = No
SpawnedRequireSpawner = No
End