nearObjects: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. example)
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|NEAROBJECTS]]
[[Category:Scripting Commands|NEAROBJECTS]]
[[Category:Scripting Commands ArmA|NEAROBJECTS]]
[[Category:Scripting Commands ArmA|NEAROBJECTS]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]


{{Command|= Comments
{{Command|= Comments

Revision as of 06:08, 24 February 2007


-wrong parameter ("Arma") defined!-1.00
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
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

See also:
nearestObjectnearestObjectsnearestObject typenearestObject id

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