nearestObjects: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
<h2 style="color:#000066">''' nearestObjects''' '' | <h2 style="color:#000066">''' nearestObjects ''pos'''''</h2> | ||
'''Operand types:''' | '''Operand types:''' | ||
pos: [[Array]] | '''pos:''' [[Array]] | ||
'''Type of returned value:''' | '''Type of returned value:''' | ||
Line 20: | Line 20: | ||
'''Description:''' | '''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]. | 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]'''. | |||
Revision as of 18:48, 1 July 2006
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]