- Joined
- Mar 12, 2008
- Messages
- 437
How to associate a unit group with another unit?
Hey, I have a thing where one unit attacks another unit. After the attack, the unit is 'infected' forever.
What I want is for the infecting unit to die, when the infected one does. How can this be done? I thought about using the 'wait for condition' action, but iirc the information gets lost during the wait. Does it require hashtables?
Specifically, one infector is only mapped to one victim. One victim may have multiple infectors, which all die when the victim dies.
Hey, I have a thing where one unit attacks another unit. After the attack, the unit is 'infected' forever.
What I want is for the infecting unit to die, when the infected one does. How can this be done? I thought about using the 'wait for condition' action, but iirc the information gets lost during the wait. Does it require hashtables?
Specifically, one infector is only mapped to one victim. One victim may have multiple infectors, which all die when the victim dies.