nearestObjects
Jump to navigation
Jump to search
nearestObjects pos
Operand types:
pos: Array
Type of returned value:
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]