nearTargets: Difference between revisions
Jump to navigation
Jump to search
(5209 change included) |
m (Fixed last change) |
||
Line 22: | Line 22: | ||
enemies), | enemies), | ||
*object (what object, can be used to get more information if needed) | *object (what object, can be used to get more information if needed) | ||
*position accuracy (assumed accuracy of the perceived position, introduced in 1.9.5209) | |||
''for each recognized target''|= Return value | ''for each recognized target''|= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 16:22, 31 December 2007
Description
- Description:
- Returns a list of targets within the defined range.
"Targets" are not restricted to enemy units. - Groups:
- Uncategorised
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
- object (what object, can be used to get more information if needed)
- position accuracy (assumed accuracy of the perceived position, introduced in 1.9.5209)
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
- 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