nearObjects: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:




<h2 style="color:#000066">'''''postion'' nearObjects  ''radius'' or ''[typeName, radius]''</h2>
<h2 style="color:#000066">'''''position'' nearObjects  ''radius'' or ''[typeName, radius]''</h2>





Revision as of 18:56, 1 July 2006


position nearObjects radius or [typeName, radius]


Operand types:

position: Array

radius: Number

[typeName, radius]: Array

Type of returned value:

Array

Compatibility:

Version 2.92 required.

Description:

Find objects in the circle with given radius.

If typeName is given, only objects of given type (or its subtype) are listed.


Example:

_list = position player nearObjects 50