nearObjects: Difference between revisions
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 | |||
____________________________________________________________________________________________ | |||
| arma |= Game name | |||
|2.92|= Game version | |||
____________________________________________________________________________________________ | |||
| Find objects in the circle with given radius. If typeName is given, only objects of given type (or its subtype) are listed. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | position '''nearObjects''' radius '''or''' [typeName, radius] |= Syntax | ||
|p1= position: [[Array]] |= Parameter 1 | |||
|p2= radius: [[Number]] |= Parameter 2 | |||
|p3= [typeName, radius]: [[Array]] |= Parameter 3 | |||
[[Array]] | | [[Array]] |= Return value | ||
____________________________________________________________________________________________ | |||
|x1= <pre>_list = position player nearObjects 50</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
Revision as of 23:27, 1 August 2006
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