targetKnowledge

From Bohemia Interactive Community
Revision as of 23:28, 10 June 2021 by Lou Montana (talk | contribs) (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns unit's knowledge about target.
Groups:
Object Manipulation

Syntax

Syntax:
unit targetKnowledge target
Parameters:
unit: Object
target: Object
Return Value:
Array - Array in format
  • 0: Boolean - Target known by group
  • 1: Boolean - Target known by the unit
  • 2: Number - Last time the target was seen by the unit
  • 3: Number - Last time the target endangered the unit
  • 4: Side - Target side
  • 5: Number - Position error
  • 6: Array - Target position in format Position

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