Black Ops III

ArraySort

Returns a sorted array of entities by closest or farthest distance from <origin>

Parameters

ParameterSummary
*arrayarray to sort
*originthe origin from which to compare
[closest]if set to true the array will be sorted by distance closest to , if false by distance farthest from
[max]if set then only the first count of entities will be returned
[range]if set then only the entities within will be considered

* = mandatory