nearestObjects

From Bohemia Interactive Community
Revision as of 20:19, 29 June 2006 by Hoz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


nearestObjects pos


Operand types:

pos: Array

Type of returned value:

Array

Compatibility:

Version 2.92 required.

Description:

Returns a list of nearest objects of the given types to the given position or object, within the specified distance. Pos may be using format [x,y,z, ["type",...], limit] or [object, ["type",...], limit].


Example:

nearestObjects [player, ["Car","Tank"], 200]