nearTargets

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.07

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.07

Description

Description:
Returns a list of targets within the defined range.
"Targets" are not restricted to enemy units.

Syntax

Syntax:
Nested Array = Unit nearTargets range
Parameters:
range: Number
Return Value:
Nested Array, consisting of:

  • position (perceived, includes judgment errors and memory),
  • type (perceived, gives only what was recognized),
  • side (again, perceived side),
  • subjective cost (positive for enemies, more positive for more important or more dangerous

enemies),

  • object (what object, can be used to get more information if needed)
  • (since build 5209:) position accuracy (assumed accuracy of the perceived position)

for each recognized target

Examples

Example 1:
player nearTargets 100 could return something like this:
[[[2555.33,2535.33,1.32708],"SoldierEB",EAST,214222,EAST 1-1-A:1],[[2550.39,2482.5,1.32696],"SoldierWB",WEST,0,WEST 1-1-A:2]]

Additional Information

Multiplayer:
Behaviour unknown.

Notes

Notes

+ Add Note

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

Notes


Bottom Section

Personal tools
Buy ArmA now!