nearObjects: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(add. example) |
||
Line 33: | Line 33: | ||
|x1= <code>_list <nowiki>=</nowiki> [[position]] [[player]] '''nearObjects''' 50</code> |= Example 1 | |x1= <code>_list <nowiki>=</nowiki> [[position]] [[player]] '''nearObjects''' 50</code> |= Example 1 | ||
|x2= <code>_list<nowiki>=</nowiki> [_xpos,_ypos] '''nearObjects''' ["House",20]</code> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 05:42, 19 December 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
- Parameters:
- position: Object or Array
- radius: Number
- Return Value:
- Array
Alternative Syntax
- Syntax:
- position nearObjects [typeName, radius]
- Parameters:
- position: Object or Array
- [typeName, radius]: Array
- Return Value:
- Array
Examples
- Example 1:
_list = position player nearObjects 50
- Example 2:
_list= [_xpos,_ypos] nearObjects ["House",20]
Additional Information
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