nearTargets: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
m (Added note formatting.) |
||
Line 40: | Line 40: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
A subjective cost greater than 0 does not necessarily mean the target is an enemy unit. <b>Any</b> units that have yet to be identified have a small positive cost in the range 0 to 1. | |||
<dd class="notedate">Posted on Febuary 17, 2011 | |||
<dt class="note">'''[[User:Curry|Curry]]''' | |||
<dd class="note">A subjective cost greater than 0 does not necessarily mean the target is an enemy unit. <b>Any</b> units, that have yet to be identified, have a small positive cost in the range 0 to 1. | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 16:32, 15 January 2012
Description
- Description:
- Returns a list of targets within the defined range.
"Targets" are not restricted to enemy units. - Groups:
- Uncategorised
Syntax
- Syntax:
- Array = unit nearTargets range
- Parameters:
- unit: Object
- range: Number
- Return Value:
- Nested Array, consisting of:
- 0: Position (perceived, includes judgment and memory errors),
- 1: Type (perceived, gives only what was recognized),
- 2: Side (perceived side),
- 3: Subjective Cost (positive for enemies, more positive for more important or more dangerous
- 4: Object (object type, can be used to get more information if needed)
- 5: (since build 5209:) position accuracy (assumed accuracy of the perceived position)
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:
- revealknowsAbout
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
- Posted on Febuary 17, 2011
- Curry
- A subjective cost greater than 0 does not necessarily mean the target is an enemy unit. Any units, that have yet to be identified, have a small positive cost in the range 0 to 1.