So I have a missile system and I want to have a check that the unit that was damaged cannot be damaged again (only for certain missiles). Im using hashtables to store the missiles information.
I originally had unit groups but I want to make it MUI and thought of this
Hit = Hashtable - load boolean_hit of key(missile) of key(unit_hit)
If Hit = false then
deal damage
Hit = true
Save hit as key(missile) of key(unit_hit)
Firstly, does this work? Secondly I know there is probably a better way of doing this, so please advise me on a better method. I know clean up of the above idea is probs not easy.
I originally had unit groups but I want to make it MUI and thought of this
Hit = Hashtable - load boolean_hit of key(missile) of key(unit_hit)
If Hit = false then
deal damage
Hit = true
Save hit as key(missile) of key(unit_hit)
Firstly, does this work? Secondly I know there is probably a better way of doing this, so please advise me on a better method. I know clean up of the above idea is probs not easy.