Mm. Suffering from the same problems movement tracking did - unit ids recycling and all. You should make the real array an AIDS struct - for the same efficiency you will get the safety by setting the count to 0 in AIDS_onCreate.
So [LJASS]DamageCount[GetUnitIndex(GetTriggerUnit())][/LJASS] would be [LJASS]MySimpleDataStruct[GetTriggerUnit()].damageCount[/LJASS].
Maybe adding "pauseTracking" and "unpauseTracking" or something. This would be really cool, because then you can support multiple trackings of one unit. :thup:
At the moment I feel the interface is illogical and limited. It does not capture the real point of damage counting.
>struct DC extends array
This should be private?
Anyway, you'd need a doubly linked list of these structs attached to unit to update them correctly.
I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory