if i have x units stored in a unit varible with array
and if 1 of these units die, i want to remove the dead unit from my unit array and set all units above the unit that died one step lower.
for example:
i got 5 units stored in unit array called U[1], U[2] ... U[5].
if U[3] dies, U[4] will be set to U[3] and U[5] will be set to U[4].
could someone give me the formula for this?
and if 1 of these units die, i want to remove the dead unit from my unit array and set all units above the unit that died one step lower.
for example:
i got 5 units stored in unit array called U[1], U[2] ... U[5].
if U[3] dies, U[4] will be set to U[3] and U[5] will be set to U[4].
could someone give me the formula for this?