arf... that wasn't english ? :/
ok, i'll try to say it an other way...
you think that's "pick in range" do not use square root, but you're not sure
in coding, it's a bad thing to considerate as true thing you can't check
is it more understandable ?
(my apologies, i'm french, sorry, sorry, sorry, ...)
You must remember that like every 0,01 seconds the AI loops through all units on the map and calculates the acquisition range for auto-attacks.
maybe not, maybe they have found a way to optimize that by using a less obvious algorythm
for exemple, it's probably performed only for unit wich are of different teams
you've got 100 units and your opponent got 100 units too
a "pick in range" for each unit perform 40 000 checks
if you take in consideration that unit acquisition work only on enemy unit
it perform 10 000 checks
i think (but i'm still assuming, wich is bad) that the "acquisition range" do not use "pick in range" because it would do to many useless check
It would be pretty stupid to use a group for that and 2 expensive function calls to get the first of group and remove it
well, only map script are in jass, the game is probably in C++, wich mean that the game's dev have access to hundreds of options we don't have
and because of that, they probably have access to an array (and not a group) wich contain all units and on wich they just do "for(int i=0; i<nb_units; i++) all_units
.anythingtheywant"
PS : if i make a sort, i won't make it in a group, i'll use an output array and use the group as a constant input