nearObjects: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
[[Category:Scripting Commands ArmA|NEAROBJECTS]]
[[Category:Scripting Commands ArmA|NEAROBJECTS]]


{{Command|= Comments
____________________________________________________________________________________________


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


|2.92|= Game version
____________________________________________________________________________________________


'''Operand types:'''
| Find objects in the circle with given radius. If typeName is given, only objects of given type (or its subtype) are listed. |= Description
____________________________________________________________________________________________


'''position:''' [[Array]]
| position '''nearObjects''' radius '''or''' [typeName, radius] |= Syntax


'''radius:''' [[Number]]
|p1= position: [[Array]] |= Parameter 1


'''[typeName, radius]:''' [[Array]]
|p2= radius: [[Number]] |= Parameter 2


'''Type of returned value:'''
|p3= [typeName, radius]: [[Array]] |= Parameter 3


[[Array]]
| [[Array]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_list = position player nearObjects 50</pre> |= Example 1
____________________________________________________________________________________________


'''Compatibility:'''
|  |= See also


Version 2.92 required.
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Find objects in the circle with given radius.
<!-- Note Section END -->
</dl>


If typeName is given, only objects of given type (or its subtype) are listed.
<h3 style="display:none">Bottom Section</h3>
 
 
'''Example:'''
 
_list = position player '''nearObjects''' 50

Revision as of 00:27, 2 August 2006


-wrong parameter ("Arma") defined!-2.92
Hover & click on the images for description

Description

Description:
Find objects in the circle with given radius. If typeName is given, only objects of given type (or its subtype) are listed.
Groups:
Uncategorised

Syntax

Syntax:
position nearObjects radius or [typeName, radius]
Parameters:
position: Array
radius: Number
[typeName, radius]: Array
Return Value:
Array

Examples

Example 1:
_list = position player nearObjects 50

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section