nearestObjects

From Bohemia Interactive Community
Revision as of 18:48, 1 July 2006 by Planck (talk | contribs)
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]