Part of StarfallEx namespace
๐ External
find.sortByClosest(ents, pos, furthest)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Returns a sorted array of entities by how close they are to a point
Parameters
| Name | Type | Description |
|---|---|---|
ents | table | The array of entities |
pos | Vector | The position |
furthest? | boolean | Whether to have the further entities first |
Returns
| Type | Description |
|---|---|
table | A table of the closest entities |
Examples
No examples available.
Used In
No usages found in the codebase.