Hello i'm having some troubles understanding the native script get_closest3_distance_of_enemies_at_pos1, the problem is that at the first lines there is this :
(assign, ":min_distance_1", 100000),
(assign, ":min_distance_2", 100000),
(assign, ":min_distance_3", 100000),
Then some lines below is this :
(try_begin),
(lt, ":cur_dist", ":min_distance_1"),
(assign, ":min_distance_3", ":min_distance_2"),
(assign, ":min_distance_2", ":min_distance_1"),
(assign, ":min_distance_1", ":cur_dist"),
(else_try),
(lt, ":cur_dist", ":min_distance_2"),
(assign, ":min_distance_3", ":min_distance_2"),
(assign, ":min_distance_2", ":cur_dist"),
(else_try),
(lt, ":cur_dist", ":min_distance_3"),
(assign, ":min_distance_3", ":cur_dist"),
(try_end),
(try_end),
I don't understand why there is an else_try when we know that min_distance_1 and min_distance_2 and min_distance_3 have the same value, will that second part make the script randomly choose one of the else_try,
EDIT: i tried executing it mentally and it looks like a loop