nearObjects

From Bohemia Interactive Community

Jump to: navigation, search


Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.00

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Find objects in the circle with given radius.
If typeName is given, only objects of given type (or its subtype) are listed.
The first object in the returned array is not necessarily the closest one (like it is in nearestObjects for example).

Syntax

Syntax:

Parameters:
typeName: String as per CfgVehicles
radius: Number
Return Value:
Array

Examples

Example 1:
_list = position player nearObjects 50
Example 2:
_list= [_xpos,_ypos] nearObjects ["House",20]

Additional Information

Multiplayer:
Behaviour unknown.
See also:
nearestObject, nearestObjects, nearestObject type, nearestObject id

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

  • Units in vehicles are not detected via this command. --Kronzky
  • {_x setdamage 1} foreach (player nearObjects 50); Will only destroy Buildings. Trees and Fences/Walls will remain intact.

Bottom Section

Personal tools
Buy ArmA now!