polo2005
Wana start playing LoL? http://tinyurl.com/369as27
- Reaction score
- 97
I'm looking for a smart way to store the unit with highest custom value from a unit_Group with x units inside.
for example
unit 1 have the custom value 5
unit 2 have the custom value 3
unit 3 have the custom value 3
unit 4 have the custom value 2
and in my unit_variable
unit 1 should be = unit_variable[1]
unit 2 or unit 3 should be = unit_variable[2] or [3]
unit 4 should be = unit_variable[4]
for example
unit 1 have the custom value 5
unit 2 have the custom value 3
unit 3 have the custom value 3
unit 4 have the custom value 2
and in my unit_variable
unit 1 should be = unit_variable[1]
unit 2 or unit 3 should be = unit_variable[2] or [3]
unit 4 should be = unit_variable[4]