ScarDoc

Start typing to search the SCAR reference.

Function
Util

Util_SortPositionsByClosest

Returns a table of positions sorted from closest to furthest (or furthes to closest if reverse is true) from the origin

On this page
Util_SortPositionsByClosest(origin, positions, arg1)

Description

Returns a table of positions sorted from closest to furthest (or furthes to closest if reverse is true) from the origin

Parameters

  • originSGroupID/EGroupID/EntityID/SquadID/MarkerID/Positionrequired
  • positionsTablerequired
  • arg1reverse])optional

Returns

Table

Source

Declared in the game's script sources at:

scar/scarutil.scar