Sort_Distance
Category:
Objects / Search
Since engine version:
5.1 OC
Description
Sort criterion: Sorts the found objects by their distance to the indicated point. The nearest objects first.
Syntax
array
Sort_Distance(
int
x,
int
y);
Parameters
x:
[opt] Distance reference point. In local calls, relative to the calling object.
y:
[opt] Distance reference point. In local calls, relative to the calling object.
Remark
For additional information on the use of this function see
FindObjects
.
See also:
FindObjects
Newton, 2009-07