ren.gay
Black Ops III
ArraySort
Returns a sorted array of entities by closest or farthest distance from <origin>
Parameters
Parameter
Summary
*array
array to sort
*origin
the 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