targetKnowledge: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.50|Game version=
|1.50


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


| Returns unit's knowledge about target. The returned array includes information whether the target is  
| Returns unit's knowledge about target. The returned array includes information whether the target is  
Line 15: Line 15:
# position error
# position error
# target position
# target position
|DESCRIPTION=


| unit '''targetKnowledge''' target |SYNTAX=


|p1= unit: [[Object]] |PARAMETER1=
| unit '''targetKnowledge''' target


|p2= target: [[Object]] |PARAMETER2=
|p1= unit: [[Object]]


| [[Array]] (7 elements) |RETURNVALUE=
|p2= target: [[Object]]
 
| [[Array]] (7 elements)
   
   
|x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code> |EXAMPLE1=
|x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code>
|x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) [[select]] 5;</code> |EXAMPLE2=
|x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) [[select]] 5;</code>


| [[knowsAbout]], [[targetsQuery]], [[targetsAggregate]], [[nearTargets]], [[reveal]], [[getHideFrom]] |SEEALSO=
| [[knowsAbout]], [[targetsQuery]], [[targetsAggregate]], [[nearTargets]], [[reveal]], [[getHideFrom]]


}}
}}

Revision as of 12:26, 18 January 2021

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
Groups:
Object Manipulation

Syntax

Syntax:
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:
knowsAbouttargetsQuerytargetsAggregatenearTargetsrevealgetHideFrom

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