targetKnowledge: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.50|= Game version ________________...")
 
m (adj. examples)
Line 30: Line 30:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_kv = _soldierOne [[targetKnowledge]] _jeepOne;</code> |= Example 1
|x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code> |= Example 1
|x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) select 5;</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 14:03, 11 August 2015

Hover & click on the images for description

Description

Description:
Returns unit's knowledge about target. The returned array includes information whether the target is
  1. known by group
  2. known by the unit
  3. last time the target was seen by the unit
  4. last time the target endangered the unit
  5. target side
  6. position error
  7. target position
Multiplayer:
...
Groups:
Uncategorised

Syntax

Syntax:
Array = unit targetKnowledge target
Parameters:
unit: Object
target: Object
Return Value:
Array (7 elements)

Examples

Example 1:
_allInfo = _soldierOne targetKnowledge _jeepOne;
Example 2:
_posError = (_soldierOne targetKnowledge _jeepOne) select 5;

Additional Information

See also:
nearTargetsrevealgetHideFrom

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